benilla-re systems structs docs

SimpleRegionDestruct

function · ui · orchestration

Address
0x77f6f0 · 85 bytes, up to 0x77f744
Signature
void __thiscall (void *this)
Meaning
Unparents the region, frees its two arrays and runs the script region destructor
Confidence
verified, proof two
Finding
ui/regions#the-region-base

Finding: The region base in ui: regions in the layout

Textures and font strings share a region base. 0x77f640(parent, layer, sublevel) runs CScriptRegion::CScriptRegion, zeroes the eight dwords +0xa0 to +0xbc and +0xc0 to +0xc8, stores the vtables 0x81c9f4 and 0x81c9c8 (at +0x24) and, for a nonnull parent, calls CScriptRegion::SetRegionParent with the parent, layer and sublevel. 0x77f6f0 is its destructor body: it stores the vtables, calls SetRegionParent(0, 1, 0), frees the arrays at +0xb8 and +0xa8 and ends in CScriptRegion::~CScriptRegion. 0x77f570(p) stores p at this and, for a nonnull p, increments the count at p+4.

The derivation is in the doc.

Callers 3

Callees 3

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