nn::fs::MountDemoSaveData Function

Syntax

Result MountDemoSaveData(
     const char * archiveName,
     bit32 uniqueId,
     bit8 demoIndex
);

Parameters

Name Description
in archiveName Specifies the archive name.
in uniqueId Specifies the unique ID for the demo application.
in demoIndex Specifies the demo application index.

Return Values

Returns the result of the operation.
Value Description
Result::IsSuccess Process was successful.
ResultAlreadyExists The specified archive name is already mounted.
You must not allow this error to occur in retail products.
ResultOperationDenied Operation denied because the save data are currently being mounted.
You must not allow this error to occur in retail products.
ResultNotFormatted Not formatted. The other application's format is prohibited, so that application itself needs to do the formatting.
ResultBadFormat Invalid format. The other application's format is prohibited, so that application itself needs to do the formatting.
ResultVerificationFailed Either verification failed or some form of tampering was detected. The other application's format is prohibited, so that application itself needs to do the formatting.
A value other than the above An application bug or some other unexpected error.

Description

Mounts the save data archive for a demo application.

The save data region of the demo application is mounted as a save data archive. The demo application is specified by specifying the unique ID of the application and the demo index.

There is no ironclad guarantee that the save data this function is supposed to mount actually exists. For this reason, you need to prepare adequate error handling.

There are restrictions on the unique IDs that this function can specify, so for proper access you need to make the necessary descriptions in the RSF files of the programs that call this function. For details, see the ctr_makerom reference.

Revision History

2012/04/26
Initial version.

CONFIDENTIAL