diff options
Diffstat (limited to 'NorthstarDedicatedTest/dedicatedmaterialsystem.cpp')
-rw-r--r-- | NorthstarDedicatedTest/dedicatedmaterialsystem.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp index e334e8fe..531885a7 100644 --- a/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp +++ b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp @@ -8,6 +8,9 @@ void InitialiseDedicatedMaterialSystem(HMODULE baseAddress) { if (!IsDedicated()) return; + + //while (!IsDebuggerPresent()) + // Sleep(100); // not using these for now since they're related to nopping renderthread/gamewindow i.e. very hard //{ @@ -44,4 +47,17 @@ void InitialiseDedicatedMaterialSystem(HMODULE baseAddress) *(ptr + 2) = (char)0x03; *(ptr + 3) = (char)0x00; } + + if (DisableDedicatedWindowCreation()) + { + { + // some renderthread stuff + char* ptr = (char*)baseAddress + 0x8C10; + TempReadWrite rw(ptr); + + // call => nop + *ptr = (char)0x90; + *(ptr + 1) = (char)0x90; + } + } }
\ No newline at end of file |