2022-03-23 23:28:12 +01:00
|
|
|
//=============================================================================//
|
|
|
|
//
|
|
|
|
// Purpose: rUI Utilities
|
|
|
|
//
|
|
|
|
//=============================================================================//
|
|
|
|
|
|
|
|
#include "core/stdafx.h"
|
|
|
|
|
|
|
|
#ifndef DEDICATED
|
|
|
|
|
|
|
|
#include "rui.h"
|
2022-04-09 16:16:40 +02:00
|
|
|
#include "tier1/cvar.h"
|
2022-03-23 23:28:12 +01:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
2022-07-03 11:33:42 +02:00
|
|
|
// Purpose: draw RUI frame
|
2022-03-23 23:28:12 +01:00
|
|
|
//-----------------------------------------------------------------------------
|
2022-07-03 11:33:42 +02:00
|
|
|
bool __fastcall Rui_Draw(__int64* a1, __m128* a2, const __m128i* a3, __int64 a4, __m128* a5)
|
2022-03-23 23:28:12 +01:00
|
|
|
{
|
|
|
|
if (!rui_drawEnable->GetBool())
|
|
|
|
return false;
|
|
|
|
|
2022-07-03 11:33:42 +02:00
|
|
|
return v_Rui_Draw(a1, a2, a3, a4, a5);
|
2022-03-23 23:28:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void Rui_Attach()
|
|
|
|
{
|
2022-07-03 11:33:42 +02:00
|
|
|
DetourAttach((LPVOID*)&v_Rui_Draw, &Rui_Draw);
|
2022-03-23 23:28:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void Rui_Detach()
|
|
|
|
{
|
2022-07-03 11:33:42 +02:00
|
|
|
DetourDetach((LPVOID*)&v_Rui_Draw, &Rui_Draw);
|
2022-03-23 23:28:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // !DEDICATED
|