WPADSaveConfig

C Specification

#include <revolution/wpad.h>

typedef void (*WPADFlushCallback) ( s32 result );

BOOL WPADSaveConfig( WPADFlushCallback callback );
  

Arguments

callback Callback function to notify about the result. Notification processing is omitted if NULL is specified.

Return Values

Returns TRUE when the console settings in RAM are copied successfully and the process to reflect those in the internal flash memory has begun. Returns FALSE for a copy failure or if the SC library was performing another process.

Description

Records 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.

The value set using the WPADSetSpeakerVolume function is recorded for the audio volume. The value set using the WPADEnableMotor function is recorded for the vibrating 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.

See Also

SC Functions
WPAD Functions
WPADEnableMotor
WPADSetSpeakerVolume

Revision History

08/15/2006 Initial version.


CONFIDENTIAL