FRDU:UnscrambleLocalFriendCode

From 3dbrew
Revision as of 07:38, 8 December 2015 by Steveice10 (talk | contribs) (moved FRDU:DecodeLocalFriendCode to FRDU:UnscrambleLocalFriendCode)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Request

Index Word Description
0 Header code [0x001C0042]
1 Friend code count
2 ((count * 12) << 14) | 0x402
3 Pointer to encoded friend codes. Each is 12 bytes large.

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

Index Word Description
0 ((count * 8) << 14) | 2
1 Pointer to write decoded local friend codes to. Each is 8 bytes large.

Response

Index Word Description
0 Header code
1 Result code

Description

This decodes one or more encoded friend codes into local friend codes for use with some friend-related commands. Encoded friend codes seem to generally be retrieved from NWMUDS command GetNodeInformation.