aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/miscserverfixes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/miscserverfixes.cpp')
-rw-r--r--NorthstarDLL/miscserverfixes.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/NorthstarDLL/miscserverfixes.cpp b/NorthstarDLL/miscserverfixes.cpp
index 926779b7..1f33cc44 100644
--- a/NorthstarDLL/miscserverfixes.cpp
+++ b/NorthstarDLL/miscserverfixes.cpp
@@ -1,11 +1,7 @@
#include "pch.h"
-#include "NSMem.h"
-
-ON_DLL_LOAD("server.dll", MiscServerFixes, (HMODULE baseAddress))
+ON_DLL_LOAD("server.dll", MiscServerFixes, (CModule module))
{
- uintptr_t ba = (uintptr_t)baseAddress;
-
// nop out call to VGUI shutdown since it crashes the game when quitting from the console
- NSMem::NOP(ba + 0x154A96, 5);
+ module.Offset(0x154A96).NOP(5);
} \ No newline at end of file