diff --git a/REFix.h b/REFix.h index 1fd971d..dee2ca9 100644 --- a/REFix.h +++ b/REFix.h @@ -1,6 +1,11 @@ #pragma once #include +// hack +#define _STR(S) #S +#define STR(S) _STR(S) +constexpr const char GAME_STRING[] = STR(GAME); + namespace REF = reframework; namespace REFix { diff --git a/REFix.sln b/REFix.sln index 16d0372..27f0fb9 100644 --- a/REFix.sln +++ b/REFix.sln @@ -7,14 +7,20 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "REFix", "REFix.vcxproj", "{ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Release|x64 = Release|x64 + RE2_TDB66Debug|x64 = RE2_TDB66Debug|x64 + RE2_TDB66Release|x64 = RE2_TDB66Release|x64 + RE2Debug|x64 = RE2Debug|x64 + RE2Release|x64 = RE2Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D1E885D9-C511-46C1-83D5-43AB4539A81D}.Debug|x64.ActiveCfg = Debug|x64 - {D1E885D9-C511-46C1-83D5-43AB4539A81D}.Debug|x64.Build.0 = Debug|x64 - {D1E885D9-C511-46C1-83D5-43AB4539A81D}.Release|x64.ActiveCfg = Release|x64 - {D1E885D9-C511-46C1-83D5-43AB4539A81D}.Release|x64.Build.0 = Release|x64 + {D1E885D9-C511-46C1-83D5-43AB4539A81D}.RE2_TDB66Debug|x64.ActiveCfg = RE2_TDB66Debug|x64 + {D1E885D9-C511-46C1-83D5-43AB4539A81D}.RE2_TDB66Debug|x64.Build.0 = RE2_TDB66Debug|x64 + {D1E885D9-C511-46C1-83D5-43AB4539A81D}.RE2_TDB66Release|x64.ActiveCfg = RE2_TDB66Release|x64 + {D1E885D9-C511-46C1-83D5-43AB4539A81D}.RE2_TDB66Release|x64.Build.0 = RE2_TDB66Release|x64 + {D1E885D9-C511-46C1-83D5-43AB4539A81D}.RE2Debug|x64.ActiveCfg = RE2Debug|x64 + {D1E885D9-C511-46C1-83D5-43AB4539A81D}.RE2Debug|x64.Build.0 = RE2Debug|x64 + {D1E885D9-C511-46C1-83D5-43AB4539A81D}.RE2Release|x64.ActiveCfg = RE2Release|x64 + {D1E885D9-C511-46C1-83D5-43AB4539A81D}.RE2Release|x64.Build.0 = RE2Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/REFix.vcxproj b/REFix.vcxproj index 65b97e0..fe4ddaf 100644 --- a/REFix.vcxproj +++ b/REFix.vcxproj @@ -1,12 +1,20 @@ - - Debug + + RE2Debug x64 - - Release + + RE2Release + x64 + + + RE2_TDB66Debug + x64 + + + RE2_TDB66Release x64 @@ -18,13 +26,26 @@ 10.0 - + + DynamicLibrary + true + v143 + Unicode + + DynamicLibrary true v143 Unicode - + + DynamicLibrary + false + v143 + true + Unicode + + DynamicLibrary false v143 @@ -36,29 +57,43 @@ - + + + + + + + - + true - + + true + true + + + true + true + + true true - + true true - + Level3 true - _DEBUG;REFIX_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + _DEBUG;REFIX_EXPORTS;_WINDOWS;_USRDLL;GAME=RE2;%(PreprocessorDefinitions) true NotUsing stdcpp20 @@ -73,13 +108,55 @@ Shlwapi.lib;%(AdditionalDependencies) - + + + Level3 + true + _DEBUG;REFIX_EXPORTS;_WINDOWS;_USRDLL;GAME=RE2_TDB66;%(PreprocessorDefinitions) + true + NotUsing + stdcpp20 + stdc17 + ..\REFramework\include;%(AdditionalIncludeDirectories) + AdvancedVectorExtensions2 + + + Windows + true + false + Shlwapi.lib;%(AdditionalDependencies) + + + + + Level3 + true + true + true + NDEBUG;REFIX_EXPORTS;_WINDOWS;_USRDLL;GAME=RE2;%(PreprocessorDefinitions) + true + NotUsing + stdcpp20 + stdc17 + ..\REFramework\include;%(AdditionalIncludeDirectories) + AdvancedVectorExtensions2 + + + Windows + true + true + true + false + Shlwapi.lib;%(AdditionalDependencies) + + + Level3 true true true - NDEBUG;REFIX_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + NDEBUG;REFIX_EXPORTS;_WINDOWS;_USRDLL;GAME=RE2_TDB66;%(PreprocessorDefinitions) true NotUsing stdcpp20 diff --git a/Version.cpp b/Version.cpp index 93f0995..5cf0adc 100644 --- a/Version.cpp +++ b/Version.cpp @@ -4,5 +4,5 @@ void reframework_plugin_required_version(REFrameworkPluginVersion* version) { version->major = REFRAMEWORK_PLUGIN_VERSION_MAJOR; version->minor = REFRAMEWORK_PLUGIN_VERSION_MINOR; version->patch = REFRAMEWORK_PLUGIN_VERSION_PATCH; - version->game_name = "RE2_TDB66"; + version->game_name = GAME_STRING; } \ No newline at end of file