#include <dwc.h>
BOOL DWC_CheckDirtyFlag( const DWCUserData* userdata );
When user data has been changed, this function checks the dirty flag of the valid DWCUserData structure. The dirty flag may be updated only when the login completion callback is called after the DWC_LoginAsync function has been called.
Even when the login completion callback is not called, have the application check this flag every time the game data is saved. If the dirty flag is set, have the application save the user data.
Before saving, always call the DWC_ClearDirtyFlag function and clear the dirty flag.
userdata |
Pointer to the DWCUserData structure where user data is stored. |
TRUE |
The dirty flag is set (user data has been changed). |
FALSE |
The dirty flag is not set (user data remains unchanged). |
DWC_CreateUserData
DWC_ClearDirtyFlag
DWC_LoginAsync
2005/12/16 Added description about clearing the dirty flag before saving.
2005/10/20 Initial version.
CONFIDENTIAL