benilla-re systems structs docs

ClientConnection::Logout

function · net · orchestration

Address
0x5ab000 · 197 bytes, up to 0x5ab0c4
Signature
void __thiscall (ClientConnection *this, uint8_t quit, uint8_t instant)
Meaning
Sends opcode 0x4a when instant, else 0x4b and marks logout pending; only in world on the current connection
Confidence
verified, proof two
Finding
net/connection#logout

Finding: Logout in net: connection

0x5ab000(quit, instant) sends CMSG_PLAYER_LOGOUT (0x4a) when instant is set and CMSG_LOGOUT_REQUEST (0x4b) otherwise, only while a world handle is held at +0x1b18 and the connection is the current one; it stores quit at +0x1b1c, and for a non-instant request sets the pending byte +0x1b1d. It returns without sending when a logout is already pending and instant is clear. 0x5aaff0 is 0x5ab000(0, 1). 0x5aaf80 sends CMSG_LOGOUT_CANCEL (0x4e, no body) and clears the pending byte. 0x5ab0d0 returns the pending byte.

The derivation is in the doc.

Callers 5

Callees 5

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