mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
32 lines
875 B
C++
32 lines
875 B
C++
//===========================================================================//
|
|
//
|
|
// Purpose: Framerate indicator panel.
|
|
//
|
|
// $NoKeywords: $
|
|
//===========================================================================//
|
|
|
|
#include "core/stdafx.h"
|
|
#include "tier1/cvar.h"
|
|
#include "vgui/vgui_fpspanel.h"
|
|
#include "vgui/vgui_debugpanel.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose:
|
|
//-----------------------------------------------------------------------------
|
|
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);
|
|
}
|