aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/dedicatedmaterialsystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/dedicatedmaterialsystem.cpp')
-rw-r--r--NorthstarDLL/dedicatedmaterialsystem.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/NorthstarDLL/dedicatedmaterialsystem.cpp b/NorthstarDLL/dedicatedmaterialsystem.cpp
index 70a07ba1..a9b7120d 100644
--- a/NorthstarDLL/dedicatedmaterialsystem.cpp
+++ b/NorthstarDLL/dedicatedmaterialsystem.cpp
@@ -2,7 +2,6 @@
#include "pch.h"
#include "dedicated.h"
#include "tier0.h"
-#include "NSMem.h"
AUTOHOOK_INIT()
@@ -31,11 +30,11 @@ HRESULT, __stdcall, (
pAdapter, DriverType, Software, Flags, pFeatureLevels, FeatureLevels, SDKVersion, ppDevice, pFeatureLevel, ppImmediateContext);
}
-ON_DLL_LOAD_DEDI("materialsystem_dx11.dll", DedicatedServerMaterialSystem, (HMODULE baseAddress))
+ON_DLL_LOAD_DEDI("materialsystem_dx11.dll", DedicatedServerMaterialSystem, (CModule module))
{
AUTOHOOK_DISPATCH()
// CMaterialSystem::FindMaterial
// make the game always use the error material
- NSMem::BytePatch((uintptr_t)baseAddress + 0x5F0F1, {0xE9, 0x34, 0x03, 0x00});
+ module.Offset(0x5F0F1).Patch("E9 34 03 00");
} \ No newline at end of file