#include <dwc.h>
void DWC_CreateUserData( DWCUserData* userdata, u32 gamecode );
Generates user data for each game player. Save this user data on the DS Card in the backup memory. Data will be generated when the dirty flag is enabled; therefore, clear the dirty flag using DWC_ClearDirtyFlag() before saving.
Use the DWC_InitFriendsMatch function to set communications at the game title level in order to avoid mixed communication with other games when using the Wi-Fi connection. Use gamecode to set the range of friend relationships (namespace) in these communication groups.
In gamecode, specify the game code normally assigned to each game title; if you want to allow friend relationships across market regions, share either of the game codes.
If a different gamecode is specified, operations such as the exchange of friend data will be affected as follows:
| Exchange through friend registration keys | The validity check on friend registration keys using the DWC_CheckFriendKey function will result in invalid. |
| Exchange through DS Wireless Communications | There is no way to check the validity of friend data, but friend relationships will not be formed even if the friend data is added to the friend roster. For details see the reference manual for the DWC_CreateExchangeToken function. |
Moreover, peer matchmaking without a friend specification is possible even between software with different gamecode specified if the communication group of each game title using the DWC_InitFriendsMatch function are the same.
userdata |
Pointer to the DWCUserData structure where the generated user data is stored. |
gamecode |
Normally, the game code assigned to each game (consists of one-byte uppercase alphanumeric characters) |
None.
DWC_InitFriendsMatch, DWC_CheckDirtyFlag, DWC_ClearDirtyFlag, DWC_CheckFriendKey, DWC_CreateFriendKey, DWC_CreateExchangeToken
2007/01/25 Supplemented description of situations in which different gamecode is specified.
2006/08/10 Added caution about gamecode.
2005/12/16 Revisions.
2005/10/26 Revisions.
2005/07/22 Initial version.
CONFIDENTIAL