aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/miscserverfixes.cpp
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-07-24 20:55:34 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-07-24 20:55:34 +0100
commit52dc6d143fec8eabb9958bacbdbf6f1b4b4af592 (patch)
tree61473cc529921fa622d7815b06c8530234248034 /NorthstarDLL/miscserverfixes.cpp
parentb0bef05111a95a4cce6250d2b79e2aa5baa6dd98 (diff)
downloadNorthstarLauncher-52dc6d143fec8eabb9958bacbdbf6f1b4b4af592.tar.gz
NorthstarLauncher-52dc6d143fec8eabb9958bacbdbf6f1b4b4af592.zip
add new memory lib
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