A plugin template is provided at https://github.com/Starfield-Reverse-Engineering/CLibSFPluginTemplate. Clone the repo and run the project setup script to get started developing your plugin without having to worry about setting things up.
CommonLibSF is available as a vcpkg port. To add it to your project,
- Create a
vcpkg-configuration.json
file in your project root (next tovcpkg.json
) with the following OR append to your existingvcpkg.json
:
{
"default-registry": {
"kind": "git",
"repository": "https://github.com/microsoft/vcpkg",
"baseline": "962e5e39f8a25f42522f51fffc574e05a3efd26b"
},
"registries": [
{
"kind": "git",
"repository": "https://github.com/Starfield-Reverse-Engineering/Starfield-RE-vcpkg",
"baseline": "f190de815ffbbceee87c1c204199d036e3be313e",
"packages": ["commonlibsf"]
}
]
}
- Add CommonLibSF to the
"dependencies"
key invcpkg.json
:
{
"dependencies": ["commonlibsf"]
}
- Add the following to your
CMakeLists.txt
:
find_package(CommonLibSF CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME}
PRIVATE
CommonLibSF::CommonLibSF)