nn::fs::MountSaveData Function

Syntax

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

Result MountSaveData(
     const char * archiveName,
     bit32 uniqueId
);

List of Overloaded Member Functions

MountSaveData ( const char * ) Mounts a save data archive.
MountSaveData ( const char *, bit32 ) Mounts the save data archive that is in another application.

Description of MountSaveData ( const char * )

Mounts an application-specific save data region and gives it the specified archive name. The save data region must be formatted before it can be used.

Be sure to check the return value when you call this function to determine whether the save data region is invalid. If the save data region is invalid, call the FormatSaveData function to initialize it. Call this function again afterwards to mount it.

The following page has hints on how to handle mount errors. Please use this as a reference.

Description of MountSaveData ( const char *, bit32 )

The save data region of another application is mounted as a save data archive. The other application is specified by specifying its unique ID.

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.

The following page has hints on how to handle mount errors. Please use this as a reference.


CONFIDENTIAL