2022-04-15 04:02:33 +02:00
|
|
|
#ifndef TSLIST_H
|
|
|
|
#define TSLIST_H
|
|
|
|
|
2022-11-24 12:10:11 +01:00
|
|
|
inline void* g_pMallocPool;
|
2022-04-19 03:55:20 +02:00
|
|
|
|
2022-04-15 04:02:33 +02:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2022-05-13 14:53:25 +02:00
|
|
|
class VTSListBase : public IDetour
|
2022-04-15 04:02:33 +02:00
|
|
|
{
|
|
|
|
virtual void GetAdr(void) const
|
|
|
|
{
|
2023-01-25 02:26:52 +01:00
|
|
|
LogVarAdr("g_pMallocPool", reinterpret_cast<uintptr_t>(g_pMallocPool));
|
2022-04-15 04:02:33 +02:00
|
|
|
}
|
2022-07-22 16:34:10 +02:00
|
|
|
virtual void GetFun(void) const { }
|
2022-04-19 03:55:20 +02:00
|
|
|
virtual void GetVar(void) const
|
|
|
|
{
|
|
|
|
#if defined (GAMEDLL_S0) || defined (GAMEDLL_S1)
|
2022-12-01 22:44:55 +01:00
|
|
|
g_pMallocPool = g_GameDll.FindPatternSIMD("48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 57 41 54 41 55 41 56 41 57 48 81 EC ?? ?? ?? ?? 48 8B D9 FF 15 ?? ?? ?? ??")
|
|
|
|
.Offset(0x600).FindPatternSelf("48 8D 15 ?? ?? ?? 01", CMemory::Direction::DOWN, 100).ResolveRelativeAddressSelf(0x3, 0x7).RCast<void*>();
|
2022-04-19 03:55:20 +02:00
|
|
|
#elif defined (GAMEDLL_S2) || defined (GAMEDLL_S3)
|
2022-12-01 22:44:55 +01:00
|
|
|
g_pMallocPool = g_GameDll.FindPatternSIMD("48 89 5C 24 ?? 48 89 74 24 ?? 48 89 7C 24 ?? 55 41 54 41 55 41 56 41 57 48 8D AC 24 ?? ?? ?? ?? B8 ?? ?? ?? ?? E8 ?? ?? ?? ?? 48 2B E0 48 8B D9")
|
|
|
|
.Offset(0x130).FindPatternSelf("48 8D 15 ?? ?? ?? 01", CMemory::Direction::DOWN, 100).ResolveRelativeAddressSelf(0x3, 0x7).RCast<void*>();
|
2022-04-19 03:55:20 +02:00
|
|
|
#endif
|
2022-04-18 03:35:08 +02:00
|
|
|
}
|
2022-04-15 04:02:33 +02:00
|
|
|
virtual void GetCon(void) const { }
|
|
|
|
virtual void Attach(void) const { }
|
|
|
|
virtual void Detach(void) const { }
|
|
|
|
};
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#endif // TSLIST_H
|