Skip to content

Commit

Permalink
Remove AUTOHOOK_INIT and AUTOHOOK_DISPATCH
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpoonPlaysGames committed Aug 29, 2024
1 parent 185d5d2 commit 2a09af2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions primedev/client/modlocalisation.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "mods/modmanager.h"

AUTOHOOK_INIT()

void* g_pVguiLocalize;

static bool(__fastcall* o_pCLocalise__AddFile)(
Expand Down Expand Up @@ -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<decltype(o_pCLocalise__AddFile)>();
HookAttach(&(PVOID&)o_pCLocalise__AddFile, (PVOID)h_CLocalise__AddFile);

Expand Down

0 comments on commit 2a09af2

Please sign in to comment.