benilla-re systems structs docs

LeaveWorldUI

function · ui · primitive

Address
0x490a80 · 321 bytes, up to 0x490bc0
Meaning
Clears the world latch, runs 36 interface cleanups and fires PLAYER_LEAVING_WORLD
Confidence
verified, proof one
Finding
ui/worldenter#leaving-the-world

Finding: Leaving the world in ui: entering and leaving the world

0x490a80 leaves the world: if the latch 0xb4b424 is set it clears it (0x490a8d), runs a battery of 36 interface cleanups with no branch in between (closing the trade and loot windows among them), and fires PLAYER_LEAVING_WORLD (id 273), the only place that event is fired. A running cinematic then fires CINEMATIC_STOP. It has three callers: the shutdown 0x490bd0 (0x490c20), the player destructor chain (0x5dd543, when the manager's +0xc8 is not 1) and the player release 0x5e9aa0 (0x5e9b5a).

The derivation is in the doc.

Callers 3

Callees 45

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