benilla-re systems structs docs

LoadFlatSavedVariables

function · ui · primitive

Address
0x4913b0 · 451 bytes, up to 0x491572
Meaning
Sets string and float globals from the flat SavedVariables.lua lines and signals VARIABLES_LOADED
Confidence
verified, proof two
Finding
ui/savedvariables#saved-variables-read

Finding: Saved variables, read in ui: saved variables

An add-on's account file WTF\Account\<account>\SavedVariables\<Name>.lua and then its character file WTF\Account\<account>\<realm>\<character>\SavedVariables\<Name>.lua, or the realm-less WTF\Account\<account>\<character>\SavedVariables\<Name>.lua when that is missing, run as Lua after the add-on's own files and before its ADDON_LOADED, so their values replace what the files set. They run in the shared state under the add-on's context word, and an error in one goes to the error handler with nothing logged. The flat WTF\Account\<account>\SavedVariables.lua is not run: each line name = value sets a string, from a quoted value, nil for an empty one, or a number read as a single-precision float; other lines are ignored. VARIABLES_LOADED follows, file or not.

The derivation is in the doc.

Callers 1

Callees 9

Calls and jumps by a bare address, from tables/calls.tsv.