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
|
|
|
}
|
|
|
|
|
2023-11-26 13:21:20 +01:00
|
|
|
void V_Rui::Detour(const bool bAttach) const
|
2022-03-23 23:28:12 +01:00
|
|
|
{
|
2023-11-26 13:21:20 +01:00
|
|
|
DetourSetup(&v_Rui_Draw, &Rui_Draw, bAttach);
|
2022-03-23 23:28:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // !DEDICATED
|