DWC_CreateUserData

C Specification

#include <dwc.h>

void DWC_CreateUserData( DWCUserData* userdata, u32 gamecode );

Description

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 to the game title level in order to avoid mixed communication with other games when using Wi-Fi connection. gamecode is used to set the range of friend relationships (namespace) in these communication groups.

Specify gamecode with the game code normally assigned to each game title. When forming friend relationships outside of the marketing region, set one of the game codes to be shared.

Arguments

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).

Return Values

None.

See Also

DWC_InitFriendsMatch , DWC_CheckDirtyFlag , DWC_ClearDirtyFlag

Revision History

08/10/2006 Added note regarding gamecode.
12/16/2006 Made revisions.
10/26/2006 Made revisions.
07/22/2006 Initial version.


CONFIDENTIAL