benilla-re systems structs docs

ClientConnection::HandleLogoutResponse

function · net · orchestration

Address
0x5aaef0 · 74 bytes, up to 0x5aaf39
Signature
void __thiscall (ClientConnection *this, uint32_t reason, uint32_t instant)
Meaning
Shows the logout error and clears pending on a refusal; else fires PLAYER_QUITING or PLAYER_CAMPING unless instant
Confidence
verified, proof two
Finding
net/connection#logout-replies

Finding: Logout replies in net: connection

SMSG_LOGOUT_RESPONSE (0x4c) is a u32 result and a byte, the instant flag. Result 0 with the flag clear fires PLAYER_CAMPING when the quit byte +0x1b1c is zero and PLAYER_QUITING when it is set; with the flag set it fires nothing; a non-zero result raises game error 0x180 (ERR_LOGOUT_FAILED) and clears the pending byte. SMSG_LOGOUT_COMPLETE (0x4d, empty) runs 0x5aaeb0: it leaves the world (0x5aaf40), tears the game down through 0x401ee0(1, 1, 0) when it is the current connection, clears the pending byte, and quits the client through 0x401560(0) when the quit byte was set. SMSG_LOGOUT_CANCEL_ACK (0x4f, empty) fires LOGOUT_CANCEL and clears the pending byte, only while one is pending.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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