Script::GetCVarDefault
function · ui · orchestration
- Address
0x488cf0· 122 bytes, up to0x488d69- Signature
int __fastcall (lua_State *L)- Meaning
- Returns a script-readable CVar's default text, or nil
- 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 6
- CVar::LookupVisible cvar
- lua_isstring lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.