feat(console): default final three args in CVar::Register to most commonly used values

This commit is contained in:
fallenoak 2025-11-24 13:30:03 -06:00
parent 4569886186
commit 249c34cb1f
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -18,7 +18,7 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
static int32_t Load(const char* filename); static int32_t Load(const char* filename);
static CVar* Lookup(const char* name); static CVar* Lookup(const char* name);
static CVar* LookupRegistered(const char* name); static CVar* LookupRegistered(const char* name);
static CVar* Register(const char* name, const char* help, uint32_t flags, const char* value, bool (*fcn)(CVar*, const char*, const char*, void*), uint32_t category, bool a7, void* arg, bool a9); static CVar* Register(const char* name, const char* help, uint32_t flags, const char* value, bool (*fcn)(CVar*, const char*, const char*, void*), uint32_t category, bool a7 = false, void* arg = nullptr, bool a9 = false);
// Member variables // Member variables
uint32_t m_category = 0; uint32_t m_category = 0;