aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/buildainfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/buildainfile.cpp')
-rw-r--r--NorthstarDedicatedTest/buildainfile.cpp26
1 files changed, 5 insertions, 21 deletions
diff --git a/NorthstarDedicatedTest/buildainfile.cpp b/NorthstarDedicatedTest/buildainfile.cpp
index 3adb8324..3f30eff3 100644
--- a/NorthstarDedicatedTest/buildainfile.cpp
+++ b/NorthstarDedicatedTest/buildainfile.cpp
@@ -4,6 +4,7 @@
#include "hookutils.h"
#include <fstream>
#include <filesystem>
+#include "NSMem.h"
namespace fs = std::filesystem;
@@ -390,27 +391,10 @@ void InitialiseBuildAINFileHooks(HMODULE baseAddress)
pUnkServerMapversionGlobal = (char**)((char*)baseAddress + 0xBFBE08);
pMapName = (char*)baseAddress + 0x1053370;
+ uintptr_t base = (uintptr_t)baseAddress;
+
// remove a check that prevents a logging function in link generation from working
// due to the sheer amount of logging this is a massive perf hit to generation, but spewlog_enable 0 exists so whatever
- {
- void* ptr = (char*)baseAddress + 0x3889B6;
- TempReadWrite rw(ptr);
- *((char*)ptr) = (char)0x90;
- *((char*)ptr + 1) = (char)0x90;
- *((char*)ptr + 2) = (char)0x90;
- *((char*)ptr + 3) = (char)0x90;
- *((char*)ptr + 4) = (char)0x90;
- *((char*)ptr + 5) = (char)0x90;
- }
-
- {
- void* ptr = (char*)baseAddress + 0x3889BF;
- TempReadWrite rw(ptr);
- *((char*)ptr) = (char)0x90;
- *((char*)ptr + 1) = (char)0x90;
- *((char*)ptr + 2) = (char)0x90;
- *((char*)ptr + 3) = (char)0x90;
- *((char*)ptr + 4) = (char)0x90;
- *((char*)ptr + 5) = (char)0x90;
- }
+ NSMem::NOP(base + 0x3889B6, 6);
+ NSMem::NOP(base + 0x3889BF, 6);
} \ No newline at end of file