CVar::Register
function · cvar · primitive
- Address
0x63db90· 585 bytes, up to0x63ddd8- Signature
CVar * __fastcall (const char *name, const char *help, uint32_t flags, const char *def, void *cb, uint32_t category, uint8_t hidden, void *arg)- Meaning
- Registers a setting, or updates an existing one, and returns its record
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- cvar/registry#registering-a-setting
Finding: Registering a setting in cvar: registry
Register(name, help, flags, default, callback, category, scriptHidden, callbackArg) returns the record. A name that exists keeps its record: the
flags are ORed, the callback and argument are replaced, and the callback is called with the current value. Then the default text is offered with
Set(apply 0), which fills only the empty reset and default slots, so a value read from the config file survives. A new name gets a duplicated name, the help text and
the callback, and Set(default, apply 1) runs before the flags exist, so a latch cannot defer it; the callback sees the default, and a false result leaves the value
empty. The record then gets its flags and a console command of its own name.
The derivation is in the doc.
Callers 35
- InitializeGlobal client
- ClientContextStart client
- ClientRegisterConsoleCommands client
- RegisterCVars sound
- SoundInterfaceRegisterWorldCVars sound
- RegisterAmbienceCVars sound
- InitializeWaterAmbiences sound
- CGlueMgr::EnterWorld glue
- CGWorldFrame::CGWorldFrame ui
- Script::RegisterCVar ui
- CGGameUI::Initialize ui
- RegisterShowSmartRects ui
- RegisterCameraCVars uicamera
- CreateInputControl input
- GetRealmListAddress net
- GetRealmName net
- RegisterPlayerCVars objectlayer
- RegisterUnitCVars objectlayer
- CGUnit_C::Initialize objectlayer
- InitializeSelectionCircle objectlayer
- InitUnitSounds objectlayer
- RegisterCombatLogMessages objectlayer
- ConsoleDeviceInitialize console
- RegisterDisplayCVars console
- SetCommandHandler cvar
- BuildWeatherManager lighting
- RegisterVideoOptions cvar
- ViolenceLevelsInitialize unassigned
- PlayerNameInitialize playername
- ConstructGlowEffect ffxeffects
- ConstructDeathEffect ffxeffects
- FFXInitialize ffxeffects
- InitSky lighting
- InitShadows lighting
- Spell_C::SystemInitialize spell
Callees 11
- CVar::Set cvar
- CVarLinkGet cvar
- CVarLinkNode cvar
- CVarTableInitBuckets cvar
- CVarTableRehash cvar
- ConsoleCommandRegister console
- SMemFree storm
- SStrCmpI storm
- SStrCopy storm
- SStrDupA storm
- SStrHashHT storm
Calls and jumps by a bare address, from tables/calls.tsv.