Script::RegisterCVar
function · ui · primitive
- Address
0x488b00· 154 bytes, up to0x488b99- Signature
int __fastcall (lua_State *L)- Meaning
- Registers a script CVar once, with category 9, up to 30 of them
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/cvarverbs#registering-cvars-from-lua
Finding: Registering CVars from Lua in ui: CVar, option and engine information verbs
RegisterCVar("name" [, default]) registers a script CVar: a new name gets flags 0, category 9 and the default text, or 0; the
thirty-first registration raises Attempted to register too many CVars. It looks the name up with the script lookup, which does not
see an engine CVar that is hidden from scripts, so such a CVar counts as new. CVar::Register then finds the existing record,
sets its bit 31 and clears its callback, which hands that CVar to scripts and silences its change callback. The script lookup
is cvar/registry#lookup, the registration cvar/registry#registering-a-setting.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- CVar::Register cvar
- CVar::LookupVisible cvar
- lua_isstring lua
- lua_tostring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.