benilla-re systems structs docs

FriendList::FindOrAddFriendSlot

function · net · orchestration

Address
0x5aea60 · 86 bytes, up to 0x5aeab5
Signature
int32_t __thiscall (FriendList *this, uint64_t guid)
Meaning
Returns the friend slot holding a GUID, else claims the first empty slot for it with an online byte of 0
Confidence
verified, proof one
Finding
net/friends#friend-slot-claim

Finding: Friend slot claim in net: friends

Results 6, 7 and 8 find or claim the guid's slot (0x5aea60): the slot holding the guid, else the first empty one, which takes the guid and an online byte of 0. The scan stops at that empty slot. On a full list without the guid it writes the guid and a zero online byte as slot -1, in the 32 bytes before the object, and returns -1, so result 6 stores no fields. Result 2 instead matches the guid against all 50 slots, empty ones included. Result 16 (0x5af650) zeroes the first ignore holding the guid and sorts the ignores when nothing is pending.

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.