mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Tier1: add function for checking if SDK ConVar's are registered
This commit is contained in:
parent
59a904320e
commit
7440e2d5da
@ -345,4 +345,6 @@ FORCEINLINE const char* ConVar::GetString(void) const
|
||||
void ConVar_Register(int nCVarFlag = 0, IConCommandBaseAccessor* pAccessor = NULL);
|
||||
void ConVar_Unregister();
|
||||
|
||||
bool ConVar_IsRegistered();
|
||||
|
||||
#endif // CONVAR_H
|
||||
|
@ -76,6 +76,11 @@ void ConVar_Unregister()
|
||||
s_bRegistered = false;
|
||||
}
|
||||
|
||||
bool ConVar_IsRegistered()
|
||||
{
|
||||
return s_bRegistered;
|
||||
}
|
||||
|
||||
ConCommandBase::~ConCommandBase(void)
|
||||
{
|
||||
if (m_pszCustomUsageString)
|
||||
|
Loading…
x
Reference in New Issue
Block a user