mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
Update ConVar flags for ConVar_Register to use correct type (alliedmodders/metamod-source#42).
This commit is contained in:
@ -124,7 +124,7 @@ class ConCommandBase
|
||||
friend class CCvar;
|
||||
friend class ConVar;
|
||||
friend class ConCommand;
|
||||
friend void ConVar_Register( int nCVarFlag, IConCommandBaseAccessor *pAccessor );
|
||||
friend void ConVar_Register( int64 nCVarFlag, IConCommandBaseAccessor *pAccessor );
|
||||
friend void ConVar_PublishToVXConsole();
|
||||
|
||||
// FIXME: Remove when ConVar changes are done
|
||||
@ -894,7 +894,7 @@ FORCEINLINE_CVAR const char *SplitScreenConVarRef::GetDefault() const
|
||||
//-----------------------------------------------------------------------------
|
||||
// Called by the framework to register ConCommands with the ICVar
|
||||
//-----------------------------------------------------------------------------
|
||||
void ConVar_Register( int nCVarFlag = 0, IConCommandBaseAccessor *pAccessor = NULL );
|
||||
void ConVar_Register( int64 nCVarFlag = 0, IConCommandBaseAccessor *pAccessor = NULL );
|
||||
void ConVar_Unregister( );
|
||||
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
ConCommandBase *ConCommandBase::s_pConCommandBases = NULL;
|
||||
IConCommandBaseAccessor *ConCommandBase::s_pAccessor = NULL;
|
||||
static int s_nCVarFlag = 0;
|
||||
static int64 s_nCVarFlag = 0;
|
||||
static int s_nDLLIdentifier = -1; // A unique identifier indicating which DLL this convar came from
|
||||
static bool s_bRegistered = false;
|
||||
|
||||
@ -57,7 +57,7 @@ static CDefaultAccessor s_DefaultAccessor;
|
||||
//-----------------------------------------------------------------------------
|
||||
// Called by the framework to register ConCommandBases with the ICVar
|
||||
//-----------------------------------------------------------------------------
|
||||
void ConVar_Register( int nCVarFlag, IConCommandBaseAccessor *pAccessor )
|
||||
void ConVar_Register( int64 nCVarFlag, IConCommandBaseAccessor *pAccessor )
|
||||
{
|
||||
if ( !g_pCVar || s_bRegistered )
|
||||
return;
|
||||
|
Reference in New Issue
Block a user