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 27, 2024
1 parent 98bc47d commit a402f72
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions primedev/client/latencyflex.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "core/convar/convar.h"

AUTOHOOK_INIT()

ConVar* Cvar_r_latencyflex;

void (*m_winelfx_WaitAndBeginFrame)();
Expand Down Expand Up @@ -34,7 +32,6 @@ ON_DLL_LOAD_CLIENT_RELIESON("client.dll", LatencyFlex, ConVar, (CModule module))
return;
}

AUTOHOOK_DISPATCH()
o_pOnRenderStart = module.Offset(0x1952C0).RCast<decltype(o_pOnRenderStart)>();
HookAttach(&(PVOID&)o_pOnRenderStart, (PVOID)h_OnRenderStart);

Expand Down

0 comments on commit a402f72

Please sign in to comment.