mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
21 lines
648 B
C++
21 lines
648 B
C++
|
#include "core/stdafx.h"
|
||
|
#include "engine/baseclient.h"
|
||
|
|
||
|
//---------------------------------------------------------------------------------
|
||
|
// Purpose: throw away any residual garbage in the channel
|
||
|
//---------------------------------------------------------------------------------
|
||
|
std::int64_t* HCBaseClient_Clear(std::int64_t client)
|
||
|
{
|
||
|
return CBaseClient_Clear(client);
|
||
|
}
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
void CBaseClient_Attach()
|
||
|
{
|
||
|
DetourAttach((LPVOID*)&CBaseClient_Clear, &HCBaseClient_Clear);
|
||
|
}
|
||
|
void CBaseClient_Detach()
|
||
|
{
|
||
|
DetourDetach((LPVOID*)&CBaseClient_Clear, &HCBaseClient_Clear);
|
||
|
}
|