Difference between revisions of "FRDU:GetMyPresence"

From 3dbrew
Jump to navigation Jump to search
(Add FriendPresence structure)
Line 16: Line 16:
 
|-
 
|-
 
| 0
 
| 0
| 004b0002?
+
| (0x300 << 14) | 2
 
|-
 
|-
 
| 1
 
| 1
| u8* buffer
+
| Pointer to [[FRDU:GetMyPresence#FriendPresence|FriendPresence]] structure
 
|}
 
|}
  
Line 34: Line 34:
 
| Result code
 
| Result code
 
|}
 
|}
 +
 +
=FriendPresence=
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0
 +
| 0x4
 +
| u32 JoinAvailabilityFlag
 +
|-
 +
| 0x4
 +
| 0x4
 +
| u32 MatchmakeSystemType
 +
|-
 +
| 0x8
 +
| 0x4
 +
| u32 JoinGameID
 +
|-
 +
| 0xC
 +
| 0x4
 +
| u32 JoinGameMode
 +
|-
 +
| 0x10
 +
| 0x4
 +
| u32 OwnerPrincipalID
 +
|-
 +
| 0x14
 +
| 0x4
 +
| u32 JoinGroupID
 +
|-
 +
| 0x18
 +
| 0x14
 +
| u8 ApplicationArg[20]
 +
|-
 +
| 0x2C
 +
| 0x100
 +
| u16 GameModeDescription[128]
 +
|}
 +
 +
=Description=
 +
Returns the console's friend presence.

Revision as of 15:16, 12 December 2024

Request

Index Word Description
0 Header code [0x00080000]

The following is located 0x100-bytes after the beginning of the above command buffer:

Index Word Description
0 2
1 Pointer to FriendPresence structure

Response

Index Word Description
0 Header code
1 Result code

FriendPresence

Offset Size Description
0x0 0x4 u32 JoinAvailabilityFlag
0x4 0x4 u32 MatchmakeSystemType
0x8 0x4 u32 JoinGameID
0xC 0x4 u32 JoinGameMode
0x10 0x4 u32 OwnerPrincipalID
0x14 0x4 u32 JoinGroupID
0x18 0x14 u8 ApplicationArg[20]
0x2C 0x100 u16 GameModeDescription[128]

Description

Returns the console's friend presence.