benilla-re systems structs docs

lua_close

function · lua · boundary

Address
0x6f6f80 · 89 bytes, up to 0x6f6fd8
Meaning
Destroys a Lua state
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.

Callers 1

Callees 4

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