feat(console): add CVar::GetDefaultValue

This commit is contained in:
fallenoak 2025-11-18 19:21:22 -06:00
parent 8c60418231
commit 50b7dadbc7
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 6 additions and 1 deletions

View File

@ -119,6 +119,10 @@ CVar::CVar() : TSHashObject<CVar, HASHKEY_STRI>() {
// TODO
}
const char* CVar::GetDefaultValue() {
return this->m_defaultValue.GetString();
}
int32_t CVar::GetInt() {
return this->m_intValue;
}

View File

@ -36,8 +36,9 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
// Member functions
CVar();
const char* GetDefaultValue();
int32_t GetInt();
const char* GetString(void);
const char* GetString();
void InternalSet(const char*, bool, bool, bool, bool);
bool Set(const char*, bool, bool, bool, bool);
int32_t Update();