1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<TITLE>WPADGetGameTitleUtf16</TITLE> 9</HEAD> 10<BODY> 11 12<H1>WPADGetGameTitleUtf16</H1> 13 14<H2>Syntax</H2> 15<dl><dd><pre class="construction"> 16#include <revolution/wpad.h> 17 18s32 WPADGetGameTitleUtf16( s32 chan, const u16 **title ); 19</pre></dd></dl> 20 21<H2>Arguments</H2> 22<TABLE class="arguments" border="1" > 23 <TBODY> 24 <TR> 25<TH>chan</TH> 26<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD> 27 </TR> 28 <TR> 29<TH>title</TH> 30<TD>Pointer to the game title to register as the game data's file information.</TD> 31 </TR> 32 </TBODY> 33</TABLE> 34 35<H2>Return Values</H2> 36<p> 37Returns one of the following codes. 38</p> 39<p> 40<code>WPAD_ERR_NONE</code><br> <code>WPAD_ERR_INVALID</code><br> 41</P> 42 43<H2>Description</H2> 44<p> 45Gets the pointer to the game title string to register as the file information for the game data to be saved in the Wii Remote's internal memory. The string is encoded as UTF-16. 46</p> 47<p> 48Do not to call this function until the <a href="./WPADProbe.html"><code>WPADProbe</code></a> function returns <code>WPAD_ERR_NONE</code> after the Wii Remote is connected or until the callback function registered using <a href="./WPADSetConnectCallback.html"><code>WPADSetConnectCallback</code></a> is called, because information is being obtained internally. 49</p> 50<p> 51<code>WPAD_ERR_NONE</code> is returned when the date and time are obtained correctly. <code>WPAD_ERR_INVALID</code> is returned when the file information is broken or the file has not been saved. 52</p> 53 54<H2>See Also</H2> 55<p> 56<!--<A href="./toc.html" target="contents">WPAD??</A>, --> <A href="./WPADWriteGameData.html"><CODE>WPADWriteGameData</CODE></A><BR> <A href="./WPADReadGameData.html"><CODE>WPADReadGameData</CODE></A><BR> <A href="./WPADSetGameTitleUtf16.html"><CODE>WPADSetGameTitleUtf16</CODE></A> 57</p> 58 59<H2>Revision History</H2> 60<p> 612009/02/18 Added a note on times when calling this function is prohibited.<br>2006/09/23 Initial version. 62</p> 63<hr><p>CONFIDENTIAL</p></body> 64</HTML>