nn::fs::CommitSaveData Function

Syntax

Result CommitSaveData(
     const char * archiveName = "data:"
);

Arguments

Name Description
in archiveName Specifies the name of the archive. (If this argument is omitted, "data:" is specified.)

Return Values

Returns the result of the operation.

Description

Commits a change to the save data.
(Note: The commit feature has not yet been implemented.)

Commits the save data region that was mounted using the specified archive name, and thereby finalizes the data that has been written to it. If the archive is unmounted without calling this function, or the program stops, all changes to the save data since the previous commit are rolled back. If this function returns successfully, it is guaranteed that changes to the save data were made correctly. If the program is interrupted while this function is running, there are only two possibilities: either the save data will have been rolled back to the previous commit, or all changes will have been applied. There is no chance of corruption or the data being only partially written.

Note: Currently, the commit feature for save data has not yet been implemented. Changes to the save data are applied even if this function is not called. If the program is interrupted while save data is being written, there is a chance that the save data could become corrupted. Please take note of this. 

Revision History

2010/08/16
Initial version.

CONFIDENTIAL