GetSelectedCharacterSex
function · net · orchestration
- Address
0x5abdf0· 6 bytes, up to0x5abdf5- Signature
uint8_t __cdecl (void)- Meaning
- Returns the selected character sex byte at record +0x102
- Confidence
- verified, proof one
- Finding
- ui/unitplayer#the-selected-character-record
Finding: The selected character record in ui: the player token before the player object
0xc27d80 holds a 0x110-byte copy of the selected character's entry from the character list. Fields: +0x08 the name (NUL-terminated), +0x100 the race byte, +0x101 the class byte,
+0x102 the sex byte, +0x108 the level byte (nothing reads it). It sits in the zeroed tail of the data section, so it is empty at start-up. 0x5abd90(src) is the one
runtime writer: rep movsd of 0x44 dwords. Its one caller is CGlueMgr::EnterWorld (0x46b60f), reached from the glue script EnterWorld, after the character, realm and connection checks and before the
loading screen is raised. Nothing zeroes the record afterwards, so it keeps the last selected character through a logout.
The derivation is in the doc.
Callers 1
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.