s_luaState
global · ui
- Address
0xceef74· 4 bytes, up to0xceef77- Type
void *- Meaning
- Points to the Lua state of the interface, 0 while closed
- Confidence
- verified, proof two
- Finding
- ui/luastate#opening-and-replacing-the-state
Finding: Opening and replacing the state in ui: the Lua state, its library and C functions
0x7039e0 creates a state, stores it in 0xceef74 and sets it up (next entry). 0x703b80 replaces
it: when a state exists, it closes it through 0x703ba0, which destroys it and stores 0, and then
opens a new one. The client opens the state once at start-up and replaces it when the game interface
is built, when the game shuts down, and when the glue is built with a nonzero argument; it closes it
without a replacement at exit. Every global is lost at each replacement, so a logout to the
character screen runs on a state opened twice in a row.
The derivation is in the doc.