feat(console): add CVar::GetDefaultValue

This commit is contained in:
fallenoak committed 2025-11-18 19:21:22 -06:00
1 parent 8c60418231
commit 50b7dadbc7
2 files changed
+6 -1

No files matched your search

+4
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;
}
+2 -1
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();