aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dedicated.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/dedicated.cpp')
-rw-r--r--NorthstarDedicatedTest/dedicated.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/dedicated.cpp b/NorthstarDedicatedTest/dedicated.cpp
index 1468f9d1..b6db8583 100644
--- a/NorthstarDedicatedTest/dedicated.cpp
+++ b/NorthstarDedicatedTest/dedicated.cpp
@@ -281,7 +281,7 @@ void InitialiseDedicated(HMODULE engineAddress)
// CEngineAPI::Init
char* ptr = (char*)engineAddress + 0x1C60CE;
TempReadWrite rw(ptr);
-
+
// remove call to something or other that reads video settings
*ptr = (char)0x90;
*(ptr + 1) = (char)0x90;
@@ -289,18 +289,31 @@ void InitialiseDedicated(HMODULE engineAddress)
*(ptr + 3) = (char)0x90;
*(ptr + 4) = (char)0x90;
}
-
+
{
// some inputsystem bullshit
char* ptr = (char*)engineAddress + 0x1CEE28;
TempReadWrite rw(ptr);
-
+
// nop an accessviolation: temp because we still create game window atm
*ptr = (char)0x90;
*(ptr + 1) = (char)0x90;
*(ptr + 2) = (char)0x90;
}
+ {
+ // no clue what this is
+ char* ptr = (char*)engineAddress + 0x1CD146;
+ TempReadWrite rw(ptr);
+
+ // nop a crashing call
+ *ptr = (char)0x90;
+ *(ptr + 1) = (char)0x90;
+ *(ptr + 2) = (char)0x90;
+ *(ptr + 3) = (char)0x90;
+ *(ptr + 4) = (char)0x90;
+ }
+
//{
// // CEngineAPI::ModInit
// char* ptr = (char*)engineAddress + 0x1C67D1;