Tier1: add function for checking if SDK ConVar's are registered

This commit is contained in:
Kawe Mazidjatari 2024-10-06 11:49:15 +02:00
parent 59a904320e
commit 7440e2d5da
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -76,6 +76,11 @@ void ConVar_Unregister()
s_bRegistered = false;
}
bool ConVar_IsRegistered()
{
return s_bRegistered;
}
ConCommandBase::~ConCommandBase(void)
{
if (m_pszCustomUsageString)