Script::RegisterForSave
function · ui · orchestration
- Address
0x4884e0· 87 bytes, up to0x488536- Signature
int __fastcall (lua_State *L)- Meaning
- Adds a name to the flat saved variables, raising unless the context word is 0
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- ui/savedvariables#saved-variables-written
Finding: Saved variables, written in ui: saved variables
The saved-variables files are written only in the interface's shutdown, after
PLAYER_LEAVING_WORLD and PLAYER_LOGOUT: the flat file, then each loaded add-on's files.
AddOns.txt follows them there; the glue's SaveAddOns writes it too. For each loaded
add-on its account file and character file are rewritten from its declared names, an existing file
first renamed to .bak (MoveFileW, which fails when a .bak exists; nothing deletes it, so the file is then overwritten in place), each name read from the globals with the context word 0; with no names the
file is deleted. The realm-less character file is deleted. A written add-on is marked not
loaded. The flat file holds the names RegisterForSave collected, which raises unless called with
context 0.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 4
- AddFlatSavedVariable ui
- lua_isstring lua
- lua_tostring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.