#include <revolution/wpad.h> typedef void (*WPADFlushCallback) ( s32 result ); BOOL WPADSaveConfig( WPADFlushCallback callback );
| callback | Callback function to be notified of the result. When NULL is specified, notification processing is omitted. |
|---|
Returns TRUE 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 FALSE for a copy failure or if the SC library was performing another process.
Records 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.
The value set using the WPADSetSpeakerVolume function is recorded for the audio volume.
The value set using the WPADEnableMotor function is recorded for the Rumble Feature.
When 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.
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.
WPADEnableMotor, WPADSetSpeakerVolume
2008/03/17 Strengthened the warning about calling this function in the retail version.
2007/03/22 Noted that this function cannot be called from applications.
2006/08/15 Initial version.
CONFIDENTIAL