diff --git a/build_definitions.props b/build_definitions.props
index adf2e7c..3eafc72 100644
--- a/build_definitions.props
+++ b/build_definitions.props
@@ -2,29 +2,37 @@
- FNV
+ FNV
+ C:/Games/Fallout New Vegas
NVHR
+ nvhr
AVX2
- "C:/Games/Fallout New Vegas"
+ avx2
- WIN32_LEAN_AND_MEAN;HR_NAME="$(HR_NAME)";$(GAME);%(PreprocessorDefinitions)
+ WIN32_LEAN_AND_MEAN;$(HR_GAME);HR_NAME="$(HR_NAME)";HR_NAME_LOWER="$(HR_NAME_LOWER)";%(PreprocessorDefinitions)
-
- $(GAME)
+
+ $(HR_GAME)
+
+
+ $(HR_GAME_DIR)
$(HR_NAME)
+
+ $(HR_NAME_LOWER)
+
$(ARCH)
-
- $(GAME_DIR)
+
+ $(ARCH_LOWER)
\ No newline at end of file
diff --git a/cpu_info/cpu_info.vcxproj b/cpu_info/cpu_info.vcxproj
index 81cea5b..b8b6c8f 100644
--- a/cpu_info/cpu_info.vcxproj
+++ b/cpu_info/cpu_info.vcxproj
@@ -54,7 +54,7 @@
true
stdc17
stdcpp20
- None
+ OldStyle
AnySuitable
Speed
true
@@ -70,10 +70,10 @@
Console
true
true
- false
+ DebugFull
- copy "$(TargetPath)" "C:\Games\Fallout New Vegas\$(TargetFileName)"
+ copy "$(TargetPath)" "$(HR_GAME_DIR)\$(TargetFileName)"
diff --git a/cpu_info/main.c b/cpu_info/main.c
index 7f97097..bce8082 100644
--- a/cpu_info/main.c
+++ b/cpu_info/main.c
@@ -26,8 +26,10 @@ enum
};
const char *iset_names[] = {
- [IA32] = "IA32.dll", [SSE] = "SSE.dll", [SSE2] = "SSE2.dll",
- [AVX] = "AVX.dll", [AVX2] = "AVX2.dll", [AVX512] = "AVX512.dll"};
+ [IA32] = HR_NAME_LOWER "_ia32.dll", [SSE] = HR_NAME_LOWER "_sse.dll",
+ [SSE2] = HR_NAME_LOWER "_sse2.dll", [AVX] = HR_NAME_LOWER "_avx.dll",
+ [AVX2] = HR_NAME_LOWER "_avx2.dll", [AVX512] = HR_NAME_LOWER "_axvx512.dll",
+};
int get_min_iset(void)
{
@@ -132,7 +134,7 @@ int get_min_iset(void)
BOOL APIENTRY DllMain(HMODULE hModule, DWORD fdwReason, LPVOID lpReserved)
{
int iset;
- char buff[256] = "Data\\" HR_NAME "\\";
+ char buff[MAX_PATH] = "Data\\" HR_NAME "\\";
if (fdwReason == DLL_PROCESS_ATTACH)
{
diff --git a/heap_replacer/heap_replacer.vcxproj b/heap_replacer/heap_replacer.vcxproj
index b94de5b..65ddb11 100644
--- a/heap_replacer/heap_replacer.vcxproj
+++ b/heap_replacer/heap_replacer.vcxproj
@@ -35,7 +35,7 @@
false
$(SolutionDir)binaries\$(Configuration)\$(ProjectName)\$(Arch)\
$(SolutionDir)intermediates\$(Configuration)\$(ProjectName)\$(Arch)\
- $(ARCH)
+ $(HR_NAME_LOWER)_$(ARCH_LOWER)
@@ -74,7 +74,7 @@
false
- copy "$(TargetPath)" $(GAME_DIR)\Data\$(HR_NAME)\$(TargetFileName)"
+ copy "$(TargetPath)" "$(HR_GAME_DIR)\Data\$(HR_NAME)\$(TargetFileName)"
false