MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / getCVar

Function getCVar

TheForceEngine/TFE_FrontEndUI/console.cpp:123–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 CVar* getCVar(const char* name)
124 {
125 const size_t count = s_var.size();
126 CVar* cvar = s_var.data();
127 for (size_t i = 0; i < count; i++, cvar++)
128 {
129 if (strcasecmp(name, cvar->name.c_str()) == 0)
130 {
131 return cvar;
132 }
133 }
134 return nullptr;
135 }
136
137 void createCVar(const char* name, const char* helpString, u32 flags, CVarType type, CValue value, u32 maxLen)
138 {

Callers 8

registerCVarIntFunction · 0.85
registerCVarFloatFunction · 0.85
registerCVarBoolFunction · 0.85
registerCVarStringFunction · 0.85
addSerializedCVarIntFunction · 0.85
addSerializedCVarFloatFunction · 0.85
addSerializedCVarBoolFunction · 0.85
addSerializedCVarStringFunction · 0.85

Calls 3

dataMethod · 0.80
c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected