1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../css/manpage.css" type="text/css" /> 7<title>MountSdmc</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../nn/Overview.html">nn</a>::<a href="../../nn/fs/Overview.html">fs</a>::MountSdmc</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14<a href="../../nn/Result/Overview.html">Result</a> MountSdmc( 15 const char * archiveName = "sdmc:" 16); 17</pre> 18 </div> 19<h2>Parameters</h2> 20 <div class="section"> 21 <table class="arguments"> 22 <thead> 23 <tr> 24 <td width="15" /> 25<th>Name</th> 26<td>Description</td> 27 </tr> 28 </thead> 29 <tr> 30<td>in</td> 31<th>archiveName</th> 32<td>Specifies the name of the archive. (If this argument is omitted, it is specified as <CODE>sdmc:</CODE>.)</td> 33 </tr> </table> 34 </div> 35<h2>Return Values</h2> 36<div class="section">Returns the result of the operation. <br /> 37 <table class="arguments"> 38 <thead> 39 <tr> 40<th>Value</th> 41<td>Description</td> 42 </tr> 43 </thead> 44 <tr> 45<th><CODE>Result::IsSuccess</CODE></th> 46<td>Process was successful.</td> 47 </tr> 48 <tr> 49<th><CODE>ResultMediaNotFound</CODE></th> 50<td>An SD Card could not be found or recognized.</td> 51 </tr> 52 <tr> 53<th><CODE>ResultAlreadyExists</CODE></th> 54<td>The specified archive name is already mounted. <BR>You must not allow this error to occur in retail products.</td> 55 </tr> 56 <tr> 57<th><CODE>ResultArchiveInvalidated</CODE></th> 58<td>The SD Card may have been removed during the mount operation.</td> 59 </tr> 60 <tr> 61<th><CODE>ResultMediaAccessError</CODE></th> 62<td>An error occurred while accessing the SD Card due to some cause such as a loose connection. </td> 63 </tr> 64 <tr> 65<th><CODE>ResultBadFormat</CODE></th> 66<td>The SD Card has an invalid format. You must format the SD Card.</td> 67 </tr> 68 <tr> 69<th>A value other than the above.</th> 70<td>An application bug or some other unexpected error.</td> 71 </tr> 72 </table> </div> 73<h2>Description</h2> 74 <div class="section"> 75<p>Mounts an archive that directly accesses the SD Memory Card (for debugging only).</p><p>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 <a href="../../nn/fs/Unmount.html"><CODE>nn::fs::Unmount</CODE></a> function, then execute the <a href="../../nn/fs/MountSdmc.html"><CODE>nn::fs::MountSdmc</CODE></a> function again.</p><p><B>Note:</B> This is only for debugging and cannot be accessed from retail versions.</p><p> 76To use this function, you must add the <CODE>"- Debug"</CODE> attribute to the filesystem access permissions in your RSF file. For details, see the <CODE><a href="../../../tools/ctr_makerom.html#rsf">ctr_makerom</a></CODE> reference. 77 </p></div> 78<h2>Revision History</h2> 79 <div class="section"> 80 <dl class="history"> 81 <dt>2011/01/05</dt> 82<dd>Revised the description of <CODE>ResultMediaAccessError</CODE>.<br /> 83 </dd> 84 <dt>2010/12/17</dt> 85<dd>Added <CODE>ResultBadFormat</CODE> to the results and removed <CODE>ResultWriteProtected</CODE>. 86 </dd> 87 <dt>2010/12/10</dt> 88<dd>Added a note related to the content of an RSF file. 89 </dd> 90 <dt>2010/09/10</dt> 91<dd>Initial version.<br /> 92 </dd> 93 </dl> 94 </div> 95 <hr><p>CONFIDENTIAL</p></body> 96</html> 97