1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<title>MPDLPlayerInfo</title> 9</head> 10 11<body> 12 13<h1>MPDLPlayerInfo</h1> 14 15<h2>Definitions</h2> 16<dl><dd> 17<pre><code> 18#include <revolution/mpdl.h> 19#define MPDL_PLAYER_NAME_MAX 10 /* 10 or fewer characters in UTF16-LE format */ 20 21typedef struct MPDLPlayerInfo 22{ 23 int aid; 24 int color; 25 u16 name_length; 26 u16 name[MPDL_PLAYER_NAME_MAX]; 27 u8 mac[6]; 28 int progress; 29} 30MPDLPlayerInfo; 31</code></pre> 32</dd></dl> 33 34<H2>Description</H2> 35<p> 36The <code>MPDLPlayerInfo</code> structure stores player information managed by the MPDL library.<br>This player information can be retrieved using the <code><a href="./MPDLGetPlayerInfo.html">MPDLGetPlayerInfo</a></code> function. 37</p> 38<TABLE border="1"> 39 <TBODY> 40 <tr> 41<th><strong>Member</strong></th> 42<th><strong>Description</strong></th> 43 </tr> 44 <TR> 45<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>aid</strong></em></td> 46<TD width="520">AID of the player who is currently entered for a download</TD> 47 </TR> 48 <TR> 49<td valign="top" width="120" bgcolor="#ffffe8"><em><strong><STRONG><EM>color</EM></STRONG></strong></em></td> 50<TD width="520">Index value indicating the color setting of the Nintendo DS handheld unit<br>This value ranges from 0 to 15.</TD> 51 </TR> 52 <TR> 53<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>name_length</strong></em></td> 54<TD width="520">Number of characters in the player name<br>Values range from 0 to MPDL_PLAYER_NAME_MAX (=10), not including the termination character.</TD> 55 </TR> 56 <TR> 57<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>name</strong></em></td> 58<TD width="520">Player name<br>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.<br>No termination is applied if name_length is at the maximum value given by MPDL_PLAYER_NAME_MAX.</TD> 59 </TR> 60 <TR> 61<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>mac</strong></em></td> 62<TD width="520">MAC address of the Nintendo DS</TD> 63 </TR> 64 <TR> 65<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>progress</strong></em></td> 66<TD width="520">Download progress<br>A value ranging from 0 to 100, with 100 indicating that the download is complete. </TD> 67 </TR> 68 69 </TBODY> 70</TABLE> 71 72<h2>See Also</h2> 73<p> 74<code><a href="./MPDLGetPlayerInfo.html">MPDLGetPlayerInfo()</a></code>, <code><a href="./MPDLGetEntryBitmap.html">MPDLGetEntryBitmap()</a></code>, <code><a href="./MPDLGetBootedBitmap.html">MPDLGetBootedBitmap()</a></code> 75</p> 76 77<H2>Revision History</H2> 78<p> 792006/08/25 Initial version. <BR> 80</p> 81 82<hr><p>CONFIDENTIAL</p></body> 83</html> 84