2022-11-07 22:25:20 +01:00
|
|
|
#ifndef TRACEINIT_H
|
|
|
|
#define TRACEINIT_H
|
|
|
|
|
2023-07-02 23:01:29 +02:00
|
|
|
inline void(*v_TRACEINIT)(void* undef, const char* initfunc, const char* shutdownfunc);
|
2022-11-07 22:25:20 +01:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
class VTraceInit : public IDetour
|
|
|
|
{
|
|
|
|
virtual void GetAdr(void) const
|
|
|
|
{
|
2024-01-02 15:21:36 +01:00
|
|
|
LogFunAdr("TRACEINIT", v_TRACEINIT);
|
2022-11-07 22:25:20 +01:00
|
|
|
}
|
|
|
|
virtual void GetFun(void) const
|
|
|
|
{
|
2024-01-02 15:21:36 +01:00
|
|
|
g_GameDll.FindPatternSIMD("48 89 5C 24 ?? 48 89 74 24 ?? 57 48 83 EC 20 48 8B 05 ?? ?? ?? ?? 49 8B F8 48 8B F2 48 85 C0").GetPtr(v_TRACEINIT);
|
2022-11-07 22:25:20 +01:00
|
|
|
}
|
|
|
|
virtual void GetVar(void) const { }
|
|
|
|
virtual void GetCon(void) const { }
|
2023-11-26 13:21:20 +01:00
|
|
|
virtual void Detour(const bool bAttach) const { }
|
2022-11-07 22:25:20 +01:00
|
|
|
};
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#endif // TRACEINIT_H
|