LoadCharacterAddOnState
function · ui · primitive
- Address
0x51ebe0· 827 bytes, up to0x51ef1a- Meaning
- Loads a character's add-on enable state from AddOns.txt into its node, or reloads every node for null
- Confidence
- verified, proof two
- Finding
- ui/addons#enable-state
Finding: Enable state in ui: add-ons
Each character on the realm has a node of add-on names with an enabled flag, read from
WTF\Account\<account>\<realm>\<character>\AddOns.txt or, when that is missing,
WTF\Account\<account>\AddOns.txt, whose use marks the node to be written. A line is Name: value;
a value of disabled, ignoring case, is 0 and anything else 1. A last line survives only when two
separators follow it, as CR LF does; one ending in a lone LF or CR is dropped. Writing rewrites each
changed node's file as Name: enabled or Name: disabled with CR LF. The glue's roster builds the
nodes, and the in-game ResetDisabledAddOns rereads the current character's. The glue's
SaveAddOns also writes.
The derivation is in the doc.
Callers 5
- Script::ResetAddOns glue
- AppendCharSelectRecord glue
- ApplyCharacterRename glue
- Script::ResetDisabledAddOns ui
- CGGameUI::Initialize ui
Callees 15
- 0x41c050 base
- InitTable51fdd0 ui
- LinkNode5212b0 ui
- Unlink521580 ui
- AddNode5215c0 ui
- LinkOrEnd521740 ui
- GetRealmName net
- SMemAlloc storm
- SFile::Load storm
- SFile::Unload storm
- SStrCmpI storm
- SStrDupA storm
- SStrPrintf storm
- SStrTokenize storm
- SStrHashHT storm
Calls and jumps by a bare address, from tables/calls.tsv.