benilla-re systems structs docs

s_screenshotCallback

global · unassigned

Address
0x88560c · 4 bytes, up to 0x88560f
Type
void *
Meaning
Holds the completion callback of the pending screenshot request, or 0
Confidence
verified, proof one
Finding
gx/capture#capture-request-and-frame-order

Finding: Capture request and frame order in gx: screen capture

The Lua bindings Screenshot (glue 0x46d3d0, world 0x4893d0) each load a completion callback (0x46c520, 0x4930b0) into ecx and call 0x442a10, which stores it in the one-slot request at 0x88560c. The frame pass 0x442350, registered on event category 0x11 (post-update), ends with the present block: if 0x885604 is non-zero the whole block is skipped and the request stays armed; if the slot is empty it presents through the facade 0x58a960 with mask 3; otherwise it arms the device (0x589cb0), presents (0x58a960, which reads the pixels back), runs 0x4426f0 (fetch, encode, write), calls the stored callback with ecx set to whether a buffer existed, frees the buffer (0x589ce0) and clears the slot.

The derivation is in the doc.