CVar::Set
function · cvar · primitive
- Address
0x63df50· 158 bytes, up to0x63dfed- Signature
uint32_t __thiscall (CVar *this, const char *text, uint8_t apply, uint8_t setReset, uint8_t setDefault, uint8_t force)- Meaning
- Runs the callback, then latches the text or stores it; always returns 1
- Confidence
- verified, proof two
- Finding
- cvar/registry#setting-a-value
Finding: Setting a value in cvar: registry
Set(record, text, apply, setReset, setDefault, force) always returns 1. With apply 0 it is InternalSet. With apply 1 it first calls the callback as
fastcall(record, old value, text, argument); a false result drops the set. Then it counts the change. A latched record keeps the text in +0x38 and marks the config dirty; any other
runs InternalSet. That does nothing to a read-only record. With apply it stores the text, with its integer and float, only when SStrCmpI
finds it different from the value, so a change of case alone is ignored. It fills an empty reset or default slot when asked, and marks the config dirty when
something changed and force is set.
The derivation is in the doc.
Callers 33
- WowClientInit client
- SetTOSAccepted glue
- SetEULAAccepted glue
- SetScanningAccepted glue
- SetContestAccepted glue
- CGlueMgr::EnterWorld glue
- Script::SetSavedAccountName glue
- Script::SetScriptMemory glue
- Script::SetMovieSubtitles glue
- Script::SetCVar ui
- Script::SetWorldDetail ui
- Script::SetFarclip ui
- Script::SetTerrainMip ui
- Script::SetDoodadAnim ui
- Script::SetTexLodBias ui
- Script::SetGamma ui
- Script::SetBaseMip ui
- Script::SetScreenResolution ui
- Script::SetMultisampleFormat ui
- CCamera::StoreView uicamera
- CCamera::SetView uicamera
- SetAddonVersionCheckCVar ui
- SetRealmListAddress net
- ClientServices::SelectRealm net
- SetCVarFloat console
- SetCVarInt console
- SetCVarFlag console
- WriteFormatToCVars console
- ConsoleDeviceInitialize console
- SetCommandHandler cvar
- CVar::Register cvar
- CVarCommandHandler cvar
- SetZoomIndex minimap
Callees 4
- CheckFunctionPointer os
- CVar::InternalSet cvar
- SMemFree storm
- SStrDupA storm
Calls and jumps by a bare address, from tables/calls.tsv.