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 17<h2>C Specification</h2> 18 19<dl> 20<dd><pre><code>#include <revolution/wpad.h> 21 22typedef void (*WPADFlushCallback) ( s32 result ); 23 24BOOL WPADSaveConfig( WPADFlushCallback callback ); 25 </code></pre></dd> 26</dl> 27 28<h2>Arguments</h2> 29<TABLE border="1"> 30 <TBODY> 31 <TR> 32<TD><CODE><b><i>callback</i></b></CODE></TD> 33<TD>Callback function to notify about the result. Notification processing is omitted if NULL is specified.</TD> 34 </TR> 35 </TBODY> 36</TABLE> 37<h2>Return Values</h2> 38<p> 39Returns <CODE>TRUE</CODE> when the console settings in RAM are copied successfully and the process to reflect those in the internal flash memory has begun. Returns <CODE>FALSE</CODE> for a copy failure or if the SC library was performing another process. 40</p> 41<H2>Description</H2> 42<p> 43Records the vibration 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. 44</p> 45<p> 46The value set using the <a href="./WPADSetSpeakerVolume.html"><code>WPADSetSpeakerVolume</code></a> function is recorded for the audio volume. The value set using the <a href="./WPADEnableMotor.html"><code>WPADEnableMotor</code></a> function is recorded for the vibrating feature. 47</p> 48<p> 49When 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. 50</p> 51 52<h2>See Also</h2> 53<p> 54<a href="../sc/toc.html" target="contents"><code>SC</code> Functions</a><br> <A href="./toc.html" target="contents"><CODE>WPAD</CODE> Functions</A><br> <A href="./WPADEnableMotor.html"><CODE>WPADEnableMotor</CODE></A><br> <A href="./WPADSetSpeakerVolume.html"><CODE>WPADSetSpeakerVolume</CODE></A><br> 55</p> 56 57<H2>Revision History</H2> 58<P>08/15/2006 Initial version.</P> 59 60<hr> 61<P>CONFIDENTIAL</p> 62</BODY> 63</HTML>