fix(console): CVar::Load functions are static

This commit is contained in:
superp00t 2023-08-24 23:12:13 -04:00
parent c3827174e9
commit 8e5b32555c
2 changed files with 2 additions and 8 deletions

View File

@ -262,11 +262,6 @@ int32_t CVar::Load(const char* filename) {
return result;
}
int32_t SetCommandHandler(const char* command, const char* arguments);
int32_t CvarResetCommandHandler(const char* command, const char* arguments);
int32_t CvarDefaultCommandHandler(const char* command, const char* arguments);
int32_t CvarListCommandHandler(const char* command, const char* arguments);
void CVar::Initialize(const char* filename) {
STORM_ASSERT(filename);
s_filename = filename;

View File

@ -16,7 +16,8 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
static CVar* Lookup(const char* name);
static CVar* Register(const char*, const char*, uint32_t, const char*, bool (*)(CVar*, const char*, const char*, void*), uint32_t, bool, void*, bool);
static void Initialize(const char* filename);
static int32_t Load(const char* filename);
static int32_t Load(HOSFILE fileHandle);
// Member variables
uint32_t m_category = 0;
uint32_t m_flags = 0;
@ -35,8 +36,6 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
CVar();
int32_t GetInt();
const char* GetString(void);
int32_t Load(const char* filename);
int32_t Load(HOSFILE fileHandle);
void InternalSet(const char*, bool, bool, bool, bool);
bool Set(const char*, bool, bool, bool, bool);
bool Reset();