Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirdEyeSqueegee committed May 7, 2024
1 parent 44a120f commit ef59ffb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
6 changes: 3 additions & 3 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"name": "base",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_FLAGS": "$env{COMMONLIBSSE_COMPILER} $env{COMMONLIBSSE_PLATFORM} $env{COMMONLIBSSE_TEXT} $penv{CXXFLAGS}",
"CMAKE_SHARED_LINKER_FLAGS": "$env{COMMONLIBSSE_LINKER} $penv{SHARED_LINKER_FLAGS}",
"CMAKE_CXX_FLAGS": "$penv{CXXFLAGS} $env{COMMONLIBSSE_COMPILER} $env{COMMONLIBSSE_PLATFORM} $env{COMMONLIBSSE_TEXT}",
"CMAKE_SHARED_LINKER_FLAGS": "$penv{SHARED_LINKER_FLAGS} $env{COMMONLIBSSE_LINKER}",
"CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL"
}
},
Expand Down Expand Up @@ -54,7 +54,7 @@
"generator": "Ninja",
"cmakeExecutable": "C:/Program Files/CMake/bin/cmake.exe",
"environment": {
"COMMONLIBSSE_COMPILER": "/cgthreads8 /diagnostics:caret /EHsc /fp:contract /fp:except- /guard:cf- /MP /permissive- /sdl /W4 /Zc:__cplusplus /Zc:enumTypes /Zc:lambda /Zc:preprocessor /Zc:referenceBinding /Zc:rvalueCast /Zc:templateScope /Zc:ternary",
"COMMONLIBSSE_COMPILER": "/cgthreads8 /diagnostics:caret /EHsc /fp:contract /fp:except- /guard:cf- /MP /sdl /W4 /Zc:__cplusplus /Zc:enumTypes /Zc:preprocessor /Zc:templateScope",
"COMMONLIBSSE_LINKER": "/CGTHREADS:8 /MACHINE:x64 /DEBUG:FULL"
},
"cacheVariables": {
Expand Down
5 changes: 3 additions & 2 deletions src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ SKSEPluginLoad(const SKSE::LoadInterface* skse)
InitializeLogging();

const auto plugin{ SKSE::PluginDeclaration::GetSingleton() };
const auto name{ plugin->GetName() };
const auto version{ plugin->GetVersion() };

logger::info("{} {} is loading...", plugin->GetName(), version);
logger::info("{} {} is loading...", name, version);

Init(skse);

if (const auto messaging{ SKSE::GetMessagingInterface() }; !messaging->RegisterListener(Listener)) {
return false;
}

logger::info("{} has finished loading.", plugin->GetName());
logger::info("{} has finished loading.", name);
logger::info("");

return true;
Expand Down
13 changes: 3 additions & 10 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "plugin-name",
"version-semver": "0.0.1",
"builtin-baseline": "28b1cf627c0570b3e094192df2fce31a3a2bc1d3",
"dependencies": [
"fmt",
"spdlog",
"rapidcsv",
"simpleini",
"directxtk",
"openvr"
"directxtk"
],
"license": "GPL-3.0-or-later",
"vcpkg-configuration": {
"default-registry": {
"kind": "git",
"repository": "https://github.com/microsoft/vcpkg",
"baseline": "c591ac6466a55ef0a05a3d56bb1489ca36e50102"
}
}
"license": "GPL-3.0-or-later"
}

0 comments on commit ef59ffb

Please sign in to comment.