From 2a09af2a5108f3a89ea7746c658bd4b213745e23 Mon Sep 17 00:00:00 2001 From: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Thu, 29 Aug 2024 18:27:22 +0100 Subject: [PATCH] Remove AUTOHOOK_INIT and AUTOHOOK_DISPATCH --- primedev/client/modlocalisation.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/primedev/client/modlocalisation.cpp b/primedev/client/modlocalisation.cpp index da38d25d5..e5efa0745 100644 --- a/primedev/client/modlocalisation.cpp +++ b/primedev/client/modlocalisation.cpp @@ -1,7 +1,5 @@ #include "mods/modmanager.h" -AUTOHOOK_INIT() - void* g_pVguiLocalize; static bool(__fastcall* o_pCLocalise__AddFile)( @@ -52,7 +50,6 @@ ON_DLL_LOAD_CLIENT("engine.dll", VGuiInit, (CModule module)) ON_DLL_LOAD_CLIENT("localize.dll", Localize, (CModule module)) { - AUTOHOOK_DISPATCH() o_pCLocalise__AddFile = module.Offset(0x6D80).RCast(); HookAttach(&(PVOID&)o_pCLocalise__AddFile, (PVOID)h_CLocalise__AddFile);