GetExtSaveDataFormatInfo

nn::fs::GetExtSaveDataFormatInfo Function

Syntax

Result GetExtSaveDataFormatInfo(
     u32 * entryDirectory,
     u32 * entryFile,
     nn::fs::ExtSaveDataId id
);

Parameters

Name Description
out entryDirectory The maximum number of directories.
out entryFile The maximum number of files.
in id Specifies the ID of the expanded save data.

Return Values

Returns the result of the operation.
Value Description
ResultMediaNotFound An SD Card could not be found or recognized.
ResultOperationDenied An operation was denied.
This error is returned only when recovery was performed internally.
ResultWriteProtected The SD Card is write-protected.
This error is returned only when recovery was performed internally.
ResultMediaAccessError An error occurred while accessing the SD Card due to some cause such as a loose connection.
ResultBadFormat The SD Card has an invalid format. You must format the SD Card.
A value other than the above. An unexpected or fatal error occurred.

Description

Gets the format parameter for the extended save data region.

This function executes recovery internally if any discrepancy arises between metadata and actual data. ResultWriteProtected is returned as an error at this time if the SD Card has been write-protected. In addition, ResultOperationDenied is returned as an error if the read-only attribute has been set for the file on the SD Card.

Revision History

2011/03/07
Removed ResultArchiveInvalidated from Return Values based on API revision.
2011/01/21
Initial version.

CONFIDENTIAL