FRDU:IsValidFriendCode

From 3dbrew
Revision as of 16:56, 28 July 2016 by IReir (talk | contribs) (Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00260080] |- | 1-2 | (u64) friend code to validate |} The friend code can be...")
(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 [0x00260080]
1-2 (u64) friend code to validate

The friend code can be derived from the textual form of "1234-5678-9012" by stripping the slashes and then converting the string to an integer.

This function just calls FRDU:PrincipalIdToFriendCode with the lower half of the friend code and checks if the checksum byte returned matches the input.

Response

Index Word Description
0 Header code
1 Result code
2 1 if the provided friend code is valid, 0 otherwise