benilla-re systems structs docs

Script::IsConnectedToServer

function · glue · orchestration

Address
0x46d380 · 51 bytes, up to 0x46d3b2
Signature
int __fastcall (lua_State *L)
Meaning
Returns the world session's +0x1b00 as 1 or nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
glue/script#server-name-and-connection

Finding: Server name and connection in glue: the script functions

GetServerName (0x46d280) returns three values: the realmName CVar's string, then two flags from the Cfg_Configs row whose +0x04 equals the selected realm record's +0x04: the row's +0x08 nonzero, then its +0x0c nonzero; with no selected realm, an empty table or no match, nil and nil. IsConnectedToServer (0x46d380) returns the flag of the world session's +0x1b00. DisconnectFromServer (0x46d340) with that flag set stores 1 to 0xb41d98 and drops the world connection; then, in every case, it cancels the logon on the login session, with no null test: before the first logon creates that session, the cancel reads +0x05 of a null pointer and faults.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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