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 Sep 8, 2024
1 parent dbe7e6f commit b878ff3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions primedev/scripts/client/clientchathooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#include <rapidjson/document.h>

AUTOHOOK_INIT()

static void(__fastcall* o_pCHudChat__AddGameLine)(void* self, const char* message, int inboxId, bool isTeam, bool isDead) = nullptr;
static void __fastcall h_CHudChat__AddGameLine(void* self, const char* message, int inboxId, bool isTeam, bool isDead)
{
Expand Down Expand Up @@ -66,8 +64,6 @@ ADD_SQFUNC("void", NSChatWriteLine, "int context, string text", "", ScriptContex

ON_DLL_LOAD_CLIENT("client.dll", ClientChatHooks, (CModule module))
{
AUTOHOOK_DISPATCH()

o_pCHudChat__AddGameLine = module.Offset(0x22E580).RCast<decltype(o_pCHudChat__AddGameLine)>();
HookAttach(&(PVOID&)o_pCHudChat__AddGameLine, (PVOID)h_CHudChat__AddGameLine);
}

0 comments on commit b878ff3

Please sign in to comment.