QuitWithCode
function · client
- Address
0x401560· 11 bytes, up to0x40156a- Meaning
- Stores a quit code at 0x882738 and closes the current context
- Confidence
- verified, proof one
- Finding
- core/close#tail
Finding: Tail in core: closing the window
After the loop returns, WinMain runs 0x403bc0 on every route, at the login and character screens as in the
world: the input window's IME reassociation (0x42c960), the time manager, the event library's free (0x41f5a0),
the console device, the deletion of RunOnce.wtf when it exists (0x63d910), the registry's shutdown, which
writes Config.wtf again when it is dirty (0x63daf0, 0x403bec; the earlier write in the world cleared the flag),
and, for a nonzero quit code, the error text. WinMain then returns 0 and the process exits through the C
runtime.
The derivation is in the doc.
Callers 7
- CGlueMgr::Resume glue
- QuitClient glue
- Script::ForceQuit ui
- CGGameUI::Initialize ui
- CGGameUI::Update ui
- LoadAddOnByName ui
- ClientConnection::HandleLogoutComplete net
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.