r5sdk/r5dev/vgui/vgui_fpspanel.cpp
Amos 8079e0ed4c Heavy cleanup for CHostState methods and signatures
* Add Cbuf_AddText and Cbuf_Execute signatures.
* Remove additional VGui stuff from dedicated statemachine.
* Move signatures to their respective headers.
* De-inline 'CHostState::FrameUpdate()'
* Ported al new patters to GAMEDLL_S1, CEngine still recreation needs extra work
2022-02-19 02:31:16 +01:00

32 lines
875 B
C++

//===========================================================================//
//
// Purpose: Framerate indicator panel.
//
// $NoKeywords: $
//===========================================================================//
#include "core/stdafx.h"
#include "tier0/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);
}