diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-10-25 00:45:40 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-10-25 00:45:40 +0100 |
commit | 7e1f1d8270dbdfbe2374e9da664cea2e00dfd465 (patch) | |
tree | 3d5fe484721c570d12bee33aa55b1b91f7b7df40 /NorthstarDedicatedTest/dedicated.cpp | |
parent | 48acde84bd58c82eaa3a9838757dfcd05ab4ebf5 (diff) | |
download | NorthstarLauncher-7e1f1d8270dbdfbe2374e9da664cea2e00dfd465.tar.gz NorthstarLauncher-7e1f1d8270dbdfbe2374e9da664cea2e00dfd465.zip |
fixing some dedi crashes
Diffstat (limited to 'NorthstarDedicatedTest/dedicated.cpp')
-rw-r--r-- | NorthstarDedicatedTest/dedicated.cpp | 19 |
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; |