FRDU:AddFriendWithApproach

FRDU:AddFriendWithApproach

Request #

WordDescription
0
0x00340046Cmd0x0034Param1Xlat6
1? (unused)
2Descriptor for copying 1 handle
3Completion handle
4Descriptor for static buffer (id 3)
5

Input encrypted ApproachContext payload buffer

6Descriptor for static buffer (id 4)
7? (unused, max. 0x600)

Response #

WordDescription
0
0x00340040Cmd0x0034Param1Xlat0
1Result code

Description #

Decrypts the given encrypted ApproachContext payload, adds the target console locally, and then schedules an internal task to register the friend using the friends server. The approach context must contain a valid Mii (otherwise, error 0xE0E0C4E9). The console (of the caller) must not have IsShowPlayedMode set (otherwise, 0xD8A0C4FA), and must have a valid personal mii (otherwise, 0xD8A0C4F8). The first u8 value of the payload must not be zero (otherwise, 0xE0E0C4E9).

If adding the friend locally succeeds but registering the friend online fails, result code 0xC4E1 is returned (registering the friend online will be reattempted the next time the console goes online).