benilla-re systems structs docs

CSimpleFontString::DeletingDestructor

function · ui · orchestration

Address
0x770e20 · 43 bytes, up to 0x770e4a
Signature
void * __thiscall (CSimpleFontString *this, uint32_t free_flag)
Meaning
Runs the font string destructor body and returns the object to its pool when bit 0 is set
Confidence
verified, proof one
Finding
ui/fonttext#creating-and-freeing-a-string

Finding: Creating and freeing a string in ui: font string internals

0x770e50 is the string's destructor body: it frees the text +0xf0, calls SetFont(0, 0, 0, 0), UnlockScriptObject(0), decrements the string count 0xcf1cc4, unlinks the font part from its font (0x770c60(0)) and ends in the region destructor 0x77f6f0. 0x770e20 is the deleting form: with bit 0 of its flag it returns the object to the block pool at 0xcf4d10 through CDataAllocator::PutData. 0x771680(n) sets the fixed text size +0xe8: a nonzero n different from the current one allocates an n + 1-byte text buffer from CSimpleRender.cpp line 863, writes a 0 first byte, frees the old buffer and stores n at +0xec. 0x770f10(node, region) reads the XML attribute name and sets it as the region's name when nonempty.

The derivation is in the doc.

Callers 2

Callees 2

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