aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-30 20:48:53 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-30 20:48:53 +0100
commit2497b700379205ea01c1aa0c55a19be523233be1 (patch)
treee1951f2e526663c6290e318cbcf807a0c018bb64 /NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
parent06a59c70c1239de114e9bc0ce5c4ee8deabd1b6b (diff)
downloadNorthstarLauncher-2497b700379205ea01c1aa0c55a19be523233be1.tar.gz
NorthstarLauncher-2497b700379205ea01c1aa0c55a19be523233be1.zip
add spewfunc, setplaylistvaroverride, dedicated changes
Diffstat (limited to 'NorthstarDedicatedTest/dedicatedmaterialsystem.cpp')
-rw-r--r--NorthstarDedicatedTest/dedicatedmaterialsystem.cpp16
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