2022-02-19 02:31:16 +01:00
# pragma once
2022-04-09 02:18:57 +02:00
/* ==== COMMON ========================================================================================================================================================== */
2022-04-18 03:35:08 +02:00
inline CMemory p_COM_ExplainDisconnection ;
inline auto COM_ExplainDisconnection = p_COM_ExplainDisconnection . RCast < void * ( * ) ( uint64_t level , const char * fmt , . . . ) > ( ) ;
2022-02-19 02:31:16 +01:00
///////////////////////////////////////////////////////////////////////////////
2022-05-13 14:53:25 +02:00
class VCommon : public IDetour
2022-02-19 02:31:16 +01:00
{
2022-04-11 01:44:30 +02:00
virtual void GetAdr ( void ) const
2022-02-19 02:31:16 +01:00
{
2022-05-13 14:53:25 +02:00
spdlog : : debug ( " | FUN: COM_ExplainDisconnection : {:#18x} | \n " , p_COM_ExplainDisconnection . GetPtr ( ) ) ;
spdlog : : debug ( " +----------------------------------------------------------------+ \n " ) ;
2022-02-19 02:31:16 +01:00
}
2022-04-18 03:35:08 +02:00
virtual void GetFun ( void ) const
{
2022-08-09 03:02:00 +02:00
p_COM_ExplainDisconnection = g_GameDll . FindPatternSIMD ( reinterpret_cast < rsig_t > ( " \x48 \x8B \xC4 \x48 \x89 \x50 \x10 \x4C \x89 \x40 \x18 \x4C \x89 \x48 \x20 \x48 \x81 \xEC \x00 \x00 \x00 \x00 " ) , " xxxxxxxxxxxxxxxxxx???? " ) ;
2022-04-18 03:35:08 +02:00
COM_ExplainDisconnection = p_COM_ExplainDisconnection . RCast < void * ( * ) ( uint64_t , const char * , . . . ) > ( ) ; /*48 8B C4 48 89 50 10 4C 89 40 18 4C 89 48 20 48 81 EC ?? ?? ?? ??*/
}
2022-04-11 01:44:30 +02:00
virtual void GetVar ( void ) const { }
virtual void GetCon ( void ) const { }
virtual void Attach ( void ) const { }
virtual void Detach ( void ) const { }
2022-02-19 02:31:16 +01:00
} ;
///////////////////////////////////////////////////////////////////////////////
2022-05-13 14:53:25 +02:00
REGISTER ( VCommon ) ;