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 name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 9<title>WPADSaveConfig</title> 10</head> 11 12<body> 13 14<h1>WPADSaveConfig</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/wpad.h> 19 20typedef void (*WPADFlushCallback) ( s32 result ); 21 22BOOL WPADSaveConfig( WPADFlushCallback callback ); 23</pre></dd></dl> 24 25<h2>Arguments</h2> 26<TABLE class="arguments" border="1" > 27 <TBODY> 28 <TR> 29<TH>callback</TH> 30<TD>Callback function to be notified of the result. When <code>NULL</code> is specified, notification processing is omitted.</TD> 31 </TR> 32 </TBODY> 33</TABLE> 34 35<h2>Return Values</h2> 36<p> 37Returns <code>TRUE</code> when the console settings have been copied to RAM successfully, and the process to apply those settings in the internal flash memory has begun. Returns <code>FALSE</code> for a copy failure or if the SC library was performing another process. 38</p> 39 40<H2>Description</H2> 41<p> 42Records the Rumble Feature settings and the speaker volume settings to the Wii console using the SC library. This function, after copying the current settings to the console's RAM, then reflects them to the internal flash memory. 43</p> 44<p> 45The value set using the <a href="./WPADSetSpeakerVolume.html"><code>WPADSetSpeakerVolume</code></a> function is recorded for the audio volume.<br>The value set using the <a href="./WPADEnableMotor.html"><code>WPADEnableMotor</code></a> function is recorded for the Rumble Feature. 46</p> 47<p> 48When a callback function is passed to the argument, that callback function is called when the reflection to the internal flash memory is completed. When reflection is successful, a zero is passed to the callback function. If it failed, a value other than zero is passed. 49</p> 50<p> 51<font color="red"><b>You may use this function for debugging, but do not let it be called from any application other than the HOME Menu in the retail version.</b></font> 52</p> 53 54<h2>See Also</h2> 55<p class="reference"> 56<A href="./WPADEnableMotor.html">WPADEnableMotor</A>, 57<A href="./WPADSetSpeakerVolume.html">WPADSetSpeakerVolume</A> 58</p> 59 60<H2>Revision History</H2> 61<P> 622008/03/17 Strengthened the warning about calling this function in the retail version.<br>2007/03/22 Noted that this function cannot be called from applications.<br>2006/08/15 Initial version.<br> 63</P> 64 65<hr><p>CONFIDENTIAL</p></body> 66</html>