benilla-re systems structs docs

s_lightShutdownFunction

global · unassigned

Address
0x85f3f0 · 4 bytes, up to 0x85f3f3
Type
void *
Meaning
Holds the light lists' teardown function, 0x5bf300 in the image, which the stop handler calls
Confidence
verified, proof one
Finding
core/close#light-list-teardown

Finding: Light list teardown in core: closing the window

0x5bf300, which the stop handler calls through [0x85f3f0], slot 1 of a table of function pointers from 0x85f3ec, frees the nodes of the lighting objects' lists, in this order. It calls 0x5c08b0 on the table object at 0xc2a66c with 0. Then, while a list head holds a node, it empties the node's lists and frees it with SMemFree(node, tag, -2, 0): the head at 0xc2a69c, a list at +0x18 and the node's links, tag .?AUCLightList@@; the head at 0xc2a664, a list at +0x50, tag .?AUCGxuLight@@; the head at 0xc2a6f0, a link at +0x14 and one at +0xc, tag .?AVCGxuLightLink@@. A head that is 0 or has its low bit set is empty. It writes no file and sends no packet.

The derivation is in the doc.