#include <revolution/mpdl.h>
#define MPDL_PLAYER_NAME_MAX 10 /* 10 or fewer characters in UTF16-LE format */
typedef struct MPDLPlayerInfo
{
int aid;
int color;
u16 name_length;
u16 name[MPDL_PLAYER_NAME_MAX];
u8 mac[6];
int progress;
}
MPDLPlayerInfo;
The MPDLPlayerInfo structure stores player information managed by the MPDL library.
This player information can be retrieved using the MPDLGetPlayerInfo function.
| Member | Description |
|---|---|
| aid | AID of the player who is currently entered for a download |
| color | Index value indicating the color setting of the Nintendo DS handheld unit This value ranges from 0 to 15. |
| name_length | Number of characters in the player name Values range from 0 to MPDL_PLAYER_NAME_MAX (=10), not including the termination character. |
| name | Player name Because the string is Unicode (UTF16-LE), the endian-ness is reversed if the Wii console reads the string out "as is" into a u16 array. No termination is applied if name_length is at the maximum value given by MPDL_PLAYER_NAME_MAX. |
| mac | MAC address of the Nintendo DS |
| progress | Download progress A value ranging from 0 to 100, with 100 indicating that the download is complete. |
MPDLGetPlayerInfo(), MPDLGetEntryBitmap(), MPDLGetBootedBitmap()
2006/08/25 Initial version.
CONFIDENTIAL