FindOrCreateChannelSlot
function · ui · primitive
- Address
0x49b980· 407 bytes, up to0x49bb16- Meaning
- Returns an existing slot of the name or fills a free or new slot in state 1 with the name and id
- Confidence
- verified, proof one
- Finding
- ui/chatchannels#joined-channel-slots
Finding: Joined channel slots in ui: chat channels
The client keeps up to ten joined channels in an array of 0xa0-byte slots (count 0xb4fe00, base
0xb4fe04): +0x00 the slot's own 1-based position, 0 while the slot is free; +0x04 the channel's
name (128 bytes); +0x84 the member list header; +0x94 the ChatChannels id, 0 for a custom
channel; +0x98 the instance number from the join notice; +0x9c the state: 0 confirmed by the server,
1 waiting for the server, 2 renamed and waiting, 3 suspended. A free slot is reused before the array grows.
The derivation is in the doc.
Callers 2
Callees 8
- CGGameUI::DisplayError ui
- FindChannelByName ui
- 0x4a2ca0 ui
- InitList4a30d0 ui
- Quantum84a3db0 ui
- RoundUp4a3df0 ui
- 0x4a3e10 ui
- SStrCopy storm
Calls and jumps by a bare address, from tables/calls.tsv.