2022-02-19 02:31:16 +01:00
# pragma once
2022-04-09 02:18:57 +02:00
/* ==== COMMON ========================================================================================================================================================== */
inline ADDRESS p_COM_ExplainDisconnection = g_mGameDll . 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???? " ) ;
inline void * ( * COM_ExplainDisconnection ) ( std : : uint64_t level , const char * fmt , . . . ) = ( void * ( * ) ( std : : uint64_t , const char * , . . . ) ) p_COM_ExplainDisconnection . GetPtr ( ) ; /*48 8B C4 48 89 50 10 4C 89 40 18 4C 89 48 20 48 81 EC ? ? ? ?*/
2022-02-19 02:31:16 +01:00
///////////////////////////////////////////////////////////////////////////////
class HCommon : public IDetour
{
virtual void debugp ( )
{
std : : cout < < " | FUN: COM_ExplainDisconnection : 0x " < < std : : hex < < std : : uppercase < < p_COM_ExplainDisconnection . GetPtr ( ) < < std : : setw ( npad ) < < " | " < < std : : endl ;
std : : cout < < " +----------------------------------------------------------------+ " < < std : : endl ;
}
} ;
///////////////////////////////////////////////////////////////////////////////
REGISTER ( HCommon ) ;