DWC_CheckFriendKeyLegacy

Syntax

#include <dwc.h>

BOOL DWC_CheckFriendKeyLegacy(const DWCUserData *userdata,
                              u64 friend_key);

Arguments

userdata Pointer to the DWCUserData structure that stores user data.
friend_key Friend code.

Return Values

TRUE Valid.
FALSE Invalid.

Description

Checks the validity of the friend code specified by friend_key. When adding a friend code to the friend roster, use DWC_CreateFriendKeyToken to create friend data based on that friend code.

If the user enters an invalid code, either prompt the user to re-enter the information, or display an input error.

In RVLDWC1.4.15, the algorithm for generating friend codes was changed. Use the new DWC_CheckFriendKey function instead of this function unless you have some specific reason for using the old friend code generation algorithm, such as a localized version that requires it.

See Also

DWC_CreateFriendKeyLegacy DWC_CheckFriendKey

Revision History

1.4.15
Initial version.

CONFIDENTIAL