nn::fs::MountSaveData FunctionResult MountSaveData( const char * archiveName = "data:" );
| Name | Description | |
|---|---|---|
| in | archiveName | Specifies the name of the archive. (If this argument is omitted, "data:" is specified.) |
| 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. Make sure that this error never occurs in retail products. |
ResultNotFormatted |
Data region not formatted. Format it by calling the FormatSaveData function. |
ResultBadFormat |
Data region format invalid. Format it by calling the FormatSaveData function. |
ResultVerificationFailed |
Either verification failed or some form of tampering was detected. Format it by calling the FormatSaveData function. |
| A value other than the above. | An application bug or some other unexpected error. |
Mounts a save data archive.
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.
nn::fs::ResultOperationDenied. However, because of a bug, some versions of the CTR-SDK return a different Result.
| SDK version | Return Values |
|---|---|
| 1.2 and earlier versions | Returns a result indicating success. |
| 1.3 to 1.X | Returns nn::fs::ResultOperationDenied. |
| 2.0 ~ 2.2 | Returns nn::fs::ResultAccessDenied. |
| 2.3 and later versions | Returns nn::fs::ResultOperationDenied. |
CONFIDENTIAL