diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-09-09 16:01:01 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-09-09 16:01:01 +0100 |
commit | fc0e6630fb6dccbeeca6ea65c061824cd7a848e1 (patch) | |
tree | 04965579e99b5920f9bbd2c5b6e8b5d12d79b7bb /NorthstarDedicatedTest/dedicatedmaterialsystem.cpp | |
parent | fb82ecfec5893b00f68b72f912c6b3975b5fdb4f (diff) | |
download | NorthstarLauncher-fc0e6630fb6dccbeeca6ea65c061824cd7a848e1.tar.gz NorthstarLauncher-fc0e6630fb6dccbeeca6ea65c061824cd7a848e1.zip |
add IsValveMod patches
Diffstat (limited to 'NorthstarDedicatedTest/dedicatedmaterialsystem.cpp')
-rw-r--r-- | NorthstarDedicatedTest/dedicatedmaterialsystem.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp new file mode 100644 index 00000000..93e0a0eb --- /dev/null +++ b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp @@ -0,0 +1,19 @@ +#pragma once +#include "pch.h" +#include "dedicatedmaterialsystem.h" +#include "hookutils.h" + +void InitialiseDedicatedMaterialSystem(HMODULE baseAddress) +{ + { + // CMaterialSystem::FindMaterial + char* ptr = (char*)baseAddress + 0x5F0F1; + TempReadWrite rw(ptr); + + // make the game use the error material + *ptr = 0xE9; + *(ptr + 1) = (char)0x34; + *(ptr + 2) = (char)0x03; + *(ptr + 3) = (char)0x00; + } +}
\ No newline at end of file |