nn::fs::MountSdmc Function

Syntax

Result MountSdmc(
     const char * archiveName = "sdmc:"
);

Arguments

Name Description
in archiveName Specifies the name of the archive. (If this argument is omitted, it is specified as sdmc:.)

Return Values

Returns the result of the operation.
Value Description
Success Process was successful. The return value's IsSuccess function returns true in this state.
ResultMediaNotFound An SD Card could not be found or recognized.
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.

Description

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. If a mounted SD Card has been removed and reinserted, you must first unmount the SD Card using the nn::fs::Unmount function and then run the nn::fs::MountSdmc function again to mount it.

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 ctr_makerom.

Revision History

2011/01/05
Revised the description of ResultMediaAccessError.
2010/12/17
Added ResultBadFormat to the results and removed ResultWriteProtected.
2010/12/10
Added a note related to the content of an RSF file.
2010/09/10
Initial version.

CONFIDENTIAL