Difference between revisions of "FRDU:GetFriendPresence"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {{IPC/Request}} {{IPC/RequestHeader|0x0012|1|2}} {{IPC/RequestEntry|Friend key count}} {{IPC/TranslateStaticBuffer|Pointer to input Friend_Services#FriendKey|Frien...")
 
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
{{IPC/RequestEntry|Friend key count}}
 
{{IPC/RequestEntry|Friend key count}}
 
{{IPC/TranslateStaticBuffer|Pointer to input [[Friend_Services#FriendKey|FriendKey]] structures|0}}
 
{{IPC/TranslateStaticBuffer|Pointer to input [[Friend_Services#FriendKey|FriendKey]] structures|0}}
 +
{{IPC/RequestEnd}}
 +
 +
=Request Static Buffers=
 +
{{IPC/RequestStaticBuffers}}
 +
{{#vardefine:ipc_offset|0}}
 +
{{IPC/TranslateStaticBuffer|Pointer to output [[FRDU:GetFriendPresence#Friend_Presence_Structure|Friend Presence]] structures|0}}
 
{{IPC/RequestEnd}}
 
{{IPC/RequestEnd}}
  

Latest revision as of 23:47, 14 December 2024

Request[edit]

Index Word Description
0
Header 0x00120042 Cmd 0x0012 Param 1 Xlat 2
1 Friend key count
2 Descriptor for static buffer (id 0)
3 Pointer to input FriendKey structures

Request Static Buffers[edit]

The handler for this IPC command expects the following 0x100-bytes after the beginning of the above command buffer:

Index Word Description


0 Descriptor for static buffer (id 0)
1 Pointer to output Friend Presence structures

Response[edit]

Index Word Description
0
Header 0x00120042 Cmd 0x0012 Param 1 Xlat 2
1 Result code
2 Descriptor for static buffer (id 0)
3 Pointer to output Friend Presence structures

Friend Presence Structure[edit]

Offset Size Description
0x0 0x2C Presence Structure
0x2C 0x1 bool, IsPresenceLoaded
0x2D 0x1 bool, Has Sent invitation(?) Is game joinable(?)
0x2E 0x1 bool, Found
0x2F 0x1 padding

Description[edit]

Returns friend presence information for the input friend keys. For input friend keys that were not found in the friends list, a default internal placeholder friend entry will be used to populate the data, and the "found" field will be set to 0 (false).