nn::fs::MountSdmc FunctionResult MountSdmc( const char * archiveName = "sdmc:" );
| Name | Description | |
|---|---|---|
| in | archiveName | Specifies the name of the archive. (If this argument is omitted, it is specified as sdmc:.) |
| Value | Description |
|---|---|
Result::IsSuccess |
Process was successful. |
ResultMediaNotFound |
An SD Card could not be found or recognized. |
ResultAlreadyExists |
The specified archive name is already mounted. You must not allow this error to occur in retail products. |
ResultArchiveInvalidated |
The SD Card may have been removed during the mount operation. |
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 application bug or some other unexpected error. |
Mounts an archive that directly accesses the SD Memory Card (for debugging only).
Mounts the archive that directly accesses the inserted SD Memory Card. The function fails if an SD Memory Card is not inserted or the SD Memory Card is not formatted. To mount a previously mounted SD Memory Card that has been pulled out and then re-inserted, you must first unmount the card using the nn::fs::Unmount function, then execute the nn::fs::MountSdmc function again.
Note: This is only for debugging and cannot be accessed from retail versions.
To use this function, you must add the "- Debug" attribute to the filesystem access permissions in your RSF file. For details, see the ctr_makerom reference.
ResultMediaAccessError.ResultBadFormat to the results and removed ResultWriteProtected.
CONFIDENTIAL