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 28, 2024
1 parent 7f26b93 commit 82f89c2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions primedev/server/buildainfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

namespace fs = std::filesystem;

AUTOHOOK_INIT()

const int AINET_VERSION_NUMBER = 57;
const int AINET_SCRIPT_VERSION_NUMBER = 21;
const int PLACEHOLDER_CRC = 0;
Expand Down Expand Up @@ -381,8 +379,6 @@ static void __fastcall h_LoadAINFile(void* aimanager, void* buf, const char* fil

ON_DLL_LOAD("server.dll", BuildAINFile, (CModule module))
{
AUTOHOOK_DISPATCH()

o_pCAI_NetworkBuilder__Build = module.Offset(0x385E20).RCast<decltype(o_pCAI_NetworkBuilder__Build)>();
HookAttach(&(PVOID&)o_pCAI_NetworkBuilder__Build, (PVOID)h_CAI_NetworkBuilder__Build);

Expand Down

0 comments on commit 82f89c2

Please sign in to comment.