benilla-re systems structs docs

FrameScript::GetContext

function · ui · orchestration

Address
0x7040d0 · 6 bytes, up to 0x7040d5
Signature
lua_State * __cdecl (void)
Meaning
Returns the Lua state 0xceef74
Confidence
verified, proof two
Name from
the community database (idb)
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 29

Callees 0

None by a direct call or jump.

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