benilla-re systems structs docs

CGWorldFrame::DeletingDestructor

function · ui · orchestration

Address
0x481d00 · 43 bytes, up to 0x481d2a
Signature
void * __thiscall (CGWorldFrame *this, uint32_t free_flag)
Meaning
Runs the world frame destructor body and frees the frame when bit 0 of the flag is set
Confidence
verified, proof one
Finding
ui/worldframe#destruction

Finding: Destruction in ui: the world frame as a widget

0x481d30 is the world frame's destructor body, called by the deleting destructor 0x481d00. It stores the two vtables back, calls EventSetMouseMode(0, 0), zeroes the singleton 0xb4b2bc, releases the two handles at 0xb4b344 and 0xb4b348, tears down the smart-rect lists (0x509450), drains the three object lists at +0x31c, +0x328 and +0x334 (each entry closed with 0x4840d0, which releases the model at +0x8 through HandleClose2 (0x7103a0) and unlinks the node, and freed with SMemFree), destroys the camera at +0x65b8 with CCamera::~CCamera (0x50c460) and frees it, calls the virtual destructors of the objects at 0xb4b350 and 0xb4b39c when set, calls FFXShutdown (0x6cd1d0), unlinks the lists at +0x330, +0x324 and +0x318 and ends in CSimpleFrame::~CSimpleFrame (0x7693b0).

The derivation is in the doc.

Callers 1

Callees 2

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