feat(profile): add more work related to console

This commit is contained in:
phaneron 2024-12-17 00:28:01 -05:00
parent 08b49c5197
commit e95eb3354d
49 changed files with 9188 additions and 245 deletions

View file

@ -0,0 +1,28 @@
#ifndef CONSOLE_VAR_H
#define CONSOLE_VAR_H
DECLARE_STRUCT(CVar);
#include "common/rcstring.h"
#include "storm/hash.h"
STORM_TS_HASH(CVar, HASHKEY_STRI);
// class CVar : public TSHashObject<CVar, HASHKEY_STRI>
struct CVar {
TSHashObject_CVar_HASHKEY_STRI b_base;
uint32_t m_category;
uint32_t m_flags;
RCString m_stringValue;
float m_floatValue;
int32_t m_intValue;
int32_t m_modified;
RCString m_defaultValue;
RCString m_resetValue;
RCString m_latchedValue;
RCString m_help;
bool (*m_callback)(CVar*, const char*, const char*, void*);
void* m_arg;
};
#endif