benilla-re systems structs docs

s_cases49bf80

global · ui

Address
0x49c60c · 128 bytes, up to 0x49c68b
Type
void *[32]
Meaning
Holds the 32 case addresses of the switch in 0x49bf80
Confidence
inferred
Finding
ui/chatchannels#the-channel-notify-message

Finding: The channel notify message in ui: chat channels

Opcode 0x99, handled by 0x49bf80: a u8 notice, the channel name (at most 128 bytes), then the fields the notice needs (tables/channel_notices.tsv). A notice above 31 shows an empty system line. Each arm picks a token and a chat type and calls the chat line function 0x49a870 with the token as the text and the channel name as the channel. Notices 0 and 1 read a GUID and show nothing unless the channel is joined and confirmed. Notice 12 reads a GUID and two bytes and calls 0x49e910, which shows its own lines (#mode-change-lines). Notice 2 reads two u32, discarding the first, and a topic string when bytes remain.

The derivation is in the doc.