From cae9195185934fba0bd285976ed6ebde10f8f6a3 Mon Sep 17 00:00:00 2001 From: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sun, 15 Dec 2024 17:59:26 +0000 Subject: [PATCH] server: Remove AUTOHOOK_INIT and AUTOHOOK_DISPATCH_MODULE --- primedev/server/serverchathooks.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/primedev/server/serverchathooks.cpp b/primedev/server/serverchathooks.cpp index 9abb41506..11f55f00e 100644 --- a/primedev/server/serverchathooks.cpp +++ b/primedev/server/serverchathooks.cpp @@ -8,8 +8,6 @@ #include #include -AUTOHOOK_INIT() - class CServerGameDLL; class CRecipientFilter @@ -152,8 +150,6 @@ ON_DLL_LOAD("engine.dll", EngineServerChatHooks, (CModule module)) ON_DLL_LOAD_RELIESON("server.dll", ServerChatHooks, ServerSquirrel, (CModule module)) { - AUTOHOOK_DISPATCH_MODULE(server.dll) - o_pCServerGameDLL__OnReceivedSayTextMessage = module.Offset(0x1595C0).RCast(); HookAttach(&(PVOID&)o_pCServerGameDLL__OnReceivedSayTextMessage, (PVOID)h_CServerGameDLL__OnReceivedSayTextMessage);