diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-09-26 01:24:13 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-09-26 01:24:13 +0100 |
commit | e98fc31a93dfc9a14db7bb5510d25df0226d6fd3 (patch) | |
tree | 0a14184023e46394ee7bc83846c4466f7e3f14c9 /NorthstarDedicatedTest/dedicatedmaterialsystem.cpp | |
parent | f083706eb05a22ec166d8e29b565f93785ad3cb0 (diff) | |
download | NorthstarLauncher-e98fc31a93dfc9a14db7bb5510d25df0226d6fd3.tar.gz NorthstarLauncher-e98fc31a93dfc9a14db7bb5510d25df0226d6fd3.zip |
add CommandLine() and Cbuf_Execute
Diffstat (limited to 'NorthstarDedicatedTest/dedicatedmaterialsystem.cpp')
-rw-r--r-- | NorthstarDedicatedTest/dedicatedmaterialsystem.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp index 93e0a0eb..48ade24d 100644 --- a/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp +++ b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp @@ -1,16 +1,20 @@ #pragma once #include "pch.h" +#include "dedicated.h" #include "dedicatedmaterialsystem.h" #include "hookutils.h" void InitialiseDedicatedMaterialSystem(HMODULE baseAddress) { + if (!IsDedicated()) + return; + { // CMaterialSystem::FindMaterial char* ptr = (char*)baseAddress + 0x5F0F1; TempReadWrite rw(ptr); - // make the game use the error material + // make the game always use the error material *ptr = 0xE9; *(ptr + 1) = (char)0x34; *(ptr + 2) = (char)0x03; |