benilla-re systems structs docs

ClientContextStart

function · client

Address
0x402840 · 437 bytes, up to 0x4029f4
Meaning
Handles the context's start event; installs the confirm-close callback through 0x63b460
Confidence
verified, proof two
Finding
core/close#confirm-close-callback

Finding: Confirm-close callback in core: closing the window

Kind 5 and kind 0xe ask the callback [0x883f5c] before anything runs. The client installs 0x63c9a0 at context start, which closes the current context and answers 0, so the quit flag stays clear and the direct path through 0x423ca0, 0x41f5d0 and 0x422030 does not run from the window. The context's run state goes from 0 to 1 (0x41f9b0); a second close finds 1 and does nothing. In the same pass the loop skips the context's category 6, frame time and after-frame work, and tears the context down.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 11

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