FRDU:IsValidFriendCode

FRDU:IsValidFriendCode

Request #

WordDescription
0
0x00260080Cmd0x0026Param2Xlat0
1-2u64, Friend Code

Response #

WordDescription
0
0x00260080Cmd0x0026Param2Xlat0
1Result code
2bool, IsValidFriendCode

Description #

Returns whether or not the given friend code is valid. The following logic is used (everything is in little-endian byte order):

is_valid = friend_code != 0 &&
(u32)(friend_code >> 32) <= 127 &&
FRDU:PrincipalIdToFriendCode((u32)(friend_code & 0xFFFFFFFF)) == friend_code