FriendList::SetSelectedFriend
function · net · orchestration
- Address
0x5ae4d0· 56 bytes, up to0x5ae507- Signature
void __thiscall (FriendList *this, uint32_t index)- Meaning
- Stores the guid of the friend slot at an index of at most 50 as the selection, else clears it
- Confidence
- verified, proof one
- Finding
- net/friends#selecting-and-removing-friends
Finding: Selecting and removing friends in net: friends
SetSelectedFriend(index) (0x5ad210) and RemoveFriend(index) (0x5ad2d0) turn a number into a slot as __ftol(index) − 1. 0x5ae4d0 stores the guid of that slot at +0x648 for a slot of at most 50 and zero above, so index 0 or less clears the selection; slot 50 is +0x648 itself and keeps it. A number (a numeric string included) sent to RemoveFriend reaches 0x5ae7e0, which sends CMSG_DEL_FRIEND (0x6a, the guid) for a slot below 50 whose guid is not 0. Another string reaches 0x5ae6f0, which sends it for the first of the 50 slots with a name equal to the string without case, or shows ERR_FRIEND_NOT_FOUND (0x108). Neither binding tests 0xc28168.
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.