mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-26 22:06:06 +03:00
fix(console): CVar::Load functions are static
This commit is contained in:
parent
c3827174e9
commit
8e5b32555c
@ -262,11 +262,6 @@ int32_t CVar::Load(const char* filename) {
|
|||||||
return result;
|
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) {
|
void CVar::Initialize(const char* filename) {
|
||||||
STORM_ASSERT(filename);
|
STORM_ASSERT(filename);
|
||||||
s_filename = filename;
|
s_filename = filename;
|
||||||
|
|||||||
@ -16,7 +16,8 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
|||||||
static CVar* Lookup(const char* name);
|
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 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 void Initialize(const char* filename);
|
||||||
|
static int32_t Load(const char* filename);
|
||||||
|
static int32_t Load(HOSFILE fileHandle);
|
||||||
// Member variables
|
// Member variables
|
||||||
uint32_t m_category = 0;
|
uint32_t m_category = 0;
|
||||||
uint32_t m_flags = 0;
|
uint32_t m_flags = 0;
|
||||||
@ -35,8 +36,6 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
|||||||
CVar();
|
CVar();
|
||||||
int32_t GetInt();
|
int32_t GetInt();
|
||||||
const char* GetString(void);
|
const char* GetString(void);
|
||||||
int32_t Load(const char* filename);
|
|
||||||
int32_t Load(HOSFILE fileHandle);
|
|
||||||
void InternalSet(const char*, bool, bool, bool, bool);
|
void InternalSet(const char*, bool, bool, bool, bool);
|
||||||
bool Set(const char*, bool, bool, bool, bool);
|
bool Set(const char*, bool, bool, bool, bool);
|
||||||
bool Reset();
|
bool Reset();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user