Script::GetCVar
function · ui · orchestration
- Address
0x488ba0· 104 bytes, up to0x488c07- Signature
int __fastcall (lua_State *L)- Meaning
- Returns a script-readable CVar's current text
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/cvarverbs#reading-cvars-from-lua
Finding: Reading CVars from Lua in ui: CVar, option and engine information verbs
GetCVar("name") returns the CVar's current text; GetCVarDefault("name") returns its default text, or nil when it has
none. Both raise Usage: GetCVar("cvar") (the second raises Usage: SetCVarDefault("cvar")) for a non-string argument, and
Couldn't find CVar named '%s' when the name is unknown. The name is matched without regard to case, and only a CVar that
scripts may see is found (cvar/registry#lookup, bit 31 of the flag word). A latched CVar answers with its live text, not its pending one.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- CVar::LookupVisible cvar
- lua_isstring lua
- lua_tostring lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.