benilla-re systems structs docs

ClientTextEmoteHandler

function · ui · orchestration

Address
0x49dbe0 · 223 bytes, up to 0x49dcbe
Signature
int32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Reads the text emote message and composes it, or queues it until the name is known
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/chatemote#the-message

Finding: The message in ui: received text emotes

Opcode 0x105 is handled by 0x49dbe0 (registered at 0x498645). The body is u64 performerGuid, u32 textId (an EmotesText id), u32 emoteNum, u32 nameLength and the target's name, a pointer into the packet with no terminator check. The handler always returns 1. It drops the message when the friend list 0xc28168 holds the performer as ignored (0x5ae5a0). Otherwise it asks the name cache for the performer: a cached record goes to the composer 0x49b200(&guid, textId, name, emoteNum) unless the display latch 0x8435fc is set; an uncached one is queued with 0x49d0d0 as the cache callback.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 8

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