#include <dwc.h>BOOL DWC_CheckFriendKeyLegacy(const DWCUserData *userdata,
u64 friend_key);| userdata | Pointer to the DWCUserData structure that stores user data. |
| friend_key | Friend code. |
| TRUE | Valid. |
| FALSE | Invalid. |
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.
DWC_CreateFriendKeyLegacy
DWC_CheckFriendKey
CONFIDENTIAL