From 52dc6d143fec8eabb9958bacbdbf6f1b4b4af592 Mon Sep 17 00:00:00 2001 From: BobTheBob9 Date: Sun, 24 Jul 2022 20:55:34 +0100 Subject: add new memory lib --- NorthstarDLL/miscserverfixes.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'NorthstarDLL/miscserverfixes.cpp') 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 -- cgit v1.2.3