Difference between revisions of "MyPage Applet"

From Nintendo Switch Brew
Jump to: navigation, search
(Created page with "This is the MyPage applet launched by Home Menu. Official sw uses this under <code>nn::friends</code>. See AM_services#Library_Applets. == Arg == {| class="wikitable" bor...")
 
Line 15: Line 15:
 
| 0x8 || 0x10 || u128 userID
 
| 0x8 || 0x10 || u128 userID
 
|-
 
|-
| 0x18 || 0x8 || [[Account_services|NetworkServiceAccountId]]
+
| 0x18 || 0x8 || [[Account_services|NetworkServiceAccountId]] for the other account.
 
|-
 
|-
 
| 0x20 || 0x48 || [[Friend_services|InAppScreenName]]
 
| 0x20 || 0x48 || [[Friend_services|InAppScreenName]]
Line 31: Line 31:
 
! Name || Type value || PlayStartupSound || Description
 
! Name || Type value || PlayStartupSound || Description
 
|-
 
|-
| ShowFriendList || 0 || false ||  
+
| ShowFriendList || 0 || false || Launches the applet with the "Friend List" menu initially selected.
 
|-
 
|-
 
| ShowUserDetailInfo || 1 || false ||  
 
| ShowUserDetailInfo || 1 || false ||  
Line 37: Line 37:
 
| StartSendingFriendRequest || 2 || false ||  
 
| StartSendingFriendRequest || 2 || false ||  
 
|-
 
|-
| ShowMethodsOfSendingFriendRequest || 3 || false ||  
+
| ShowMethodsOfSendingFriendRequest || 3 || false || Launches the applet with the "Add Friend" menu initially selected.
 
|-
 
|-
| StartFacedFriendRequest || 4 || false ||  
+
| StartFacedFriendRequest || 4 || false || Launches the applet where the "Search for Local Users" menu is initially shown. Returning from this menu will exit the applet.
 
|-
 
|-
| ShowReceivedFriendRequestList || 5 || false ||  
+
| ShowReceivedFriendRequestList || 5 || false || Launches the applet where the "Received Friend Requests" menu is initially shown. Returning from this menu will exit the applet.
 
|-
 
|-
| ShowBlockedUserList || 6 || false ||  
+
| ShowBlockedUserList || 6 || false || Launches the applet where the "Blocked-User List" menu is initially shown. Returning from this menu will exit the applet.
 
|-
 
|-
| ShowMyProfile || 7 || false ||  
+
| ShowMyProfile || 7 || false || Launches the applet with the "Profile" menu initially selected.
 
|-
 
|-
 
| ShowMyProfileForHomeMenu || 7 || true || Identical to ShowMyProfile except for PlayStartupSound.
 
| ShowMyProfileForHomeMenu || 7 || true || Identical to ShowMyProfile except for PlayStartupSound.

Revision as of 23:16, 14 September 2019

This is the MyPage applet launched by Home Menu. Official sw uses this under nn::friends. See AM_services#Library_Applets.

Arg

Offset Size Description
0x0 0x4 #Type
0x4 0x4 Padding
0x8 0x10 u128 userID
0x18 0x8 NetworkServiceAccountId for the other account.
0x20 0x48 InAppScreenName
0x68 0x48 InAppScreenName

The is the 0xB0-byte struct pushed for the input storage.

The fields following the userID are only set for #Type ShowUserDetailInfo/StartSendingFriendRequest, for everything else these are cleared.

Type

Name Type value PlayStartupSound Description
ShowFriendList 0 false Launches the applet with the "Friend List" menu initially selected.
ShowUserDetailInfo 1 false
StartSendingFriendRequest 2 false
ShowMethodsOfSendingFriendRequest 3 false Launches the applet with the "Add Friend" menu initially selected.
StartFacedFriendRequest 4 false Launches the applet where the "Search for Local Users" menu is initially shown. Returning from this menu will exit the applet.
ShowReceivedFriendRequestList 5 false Launches the applet where the "Received Friend Requests" menu is initially shown. Returning from this menu will exit the applet.
ShowBlockedUserList 6 false Launches the applet where the "Blocked-User List" menu is initially shown. Returning from this menu will exit the applet.
ShowMyProfile 7 false Launches the applet with the "Profile" menu initially selected.
ShowMyProfileForHomeMenu 7 true Identical to ShowMyProfile except for PlayStartupSound.

Usage

User-processes should push a common arguments struct (version=0x1) as well as an #Arg struct. See #Type for the commonargs PlayStartupSound flag value. After starting the applet, official sw immediately closes it (no output storage is handled) - except for StartSendingFriendRequest, which returns an output storage containing the Result.