Update ICvar

This commit is contained in:
GAMMACASE 2025-02-19 22:38:30 +03:00
parent 050bcda98a
commit 7c6a7f9edb

View File

@ -113,6 +113,9 @@ public:
// so all ConVarRefs would still be valid as well as searching for it.
// Expects ref to have registered index to be set (is set on convar creation)
virtual void UnregisterConVarCallbacks( ConVarRef cvar ) = 0;
// Prevents default value initialisation on convars if state equals true and queues them instead,
// unlocks and initialises queued convars to default values if state is false
virtual void LockConVarValueInitialisation( bool state ) = 0;
// Returns convar data or nullptr if not found
virtual ConVarData* GetConVarData( ConVarRef cvar ) = 0;
@ -237,6 +240,9 @@ public:
CUtlVector<QueuedConVarSet_t> m_SetValueQueue;
CUtlVector<ConVarRef> m_SetToDefaultValueQueue;
bool m_LockDefaultValueInit;
CConCommandMemberAccessor<CCvar> m_FindCmd;
CConCommandMemberAccessor<CCvar> m_DumpChannelsCmd;
CConCommandMemberAccessor<CCvar> m_LogLevelCmd;