mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
21 lines
394 B
C++
21 lines
394 B
C++
|
#include "core/stdafx.h"
|
||
|
#include "tier0/cvar.h"
|
||
|
#include "vgui/vgui_fpspanel.h"
|
||
|
#include "vgui/CEngineVGui.h"
|
||
|
|
||
|
ConVar* HCFPSPanel_Paint(void* thisptr)
|
||
|
{
|
||
|
g_pLogSystem.Update();
|
||
|
return CFPSPanel_Paint(thisptr);
|
||
|
}
|
||
|
|
||
|
void CFPSPanel_Attach()
|
||
|
{
|
||
|
DetourAttach((LPVOID*)&CFPSPanel_Paint, &HCFPSPanel_Paint);
|
||
|
}
|
||
|
|
||
|
void CFPSPanel_Detach()
|
||
|
{
|
||
|
DetourDetach((LPVOID*)&CFPSPanel_Paint, &HCFPSPanel_Paint);
|
||
|
}
|