nn::fs::MountSdmcWriteOnly FunctionResult MountSdmcWriteOnly( const char * archiveName = "sdmcwo:" );
| Name | Description | |
|---|---|---|
| in | archiveName | Specifies the name of the archive. (If this argument is omitted, sdmcwo: is specified.) |
| 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 the archive that directly accesses the SD Memory Card. This is a write-only archive. File read operations are not permitted. Directory read operations are also not permitted.
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::MountSdmcWriteOnly function again.
To use this function, you must add the "- DirectSdmcWrite" attribute to the file system access permissions in your RSF file. For details, see the ctr_makerom reference.
CONFIDENTIAL