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>nn::fs::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 = &quot;sdmc:&quot;
16);
17</pre>
18    </div>
19<h2>Arguments</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>Success</th>
46<td>Process was successful. The return value's <CODE>IsSuccess</CODE> function returns <CODE>true</CODE> in this state.</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>ResultArchiveInvalidated</CODE></th>
54<td>The SD Card may have been removed during the mount operation.</td>
55        </tr>
56        <tr>
57<th><CODE>ResultMediaAccessError</CODE></th>
58<td>An error occurred while accessing the SD Card due to some cause such as a loose connection. </td>
59        </tr>
60        <tr>
61<th><CODE>ResultBadFormat</CODE></th>
62<td>The SD Card has an invalid format. You must format the SD Card.</td>
63        </tr>
64        <tr>
65<th>A value other than the above.</th>
66<td>An application bug or some other unexpected error.</td>
67        </tr>
68      </table> </div>
69<h2>Description</h2>
70    <div class="section">
71<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. If a mounted SD Card has been removed and reinserted, you must first unmount the SD Card using the <a href="../../nn/fs/Unmount.html"><CODE>nn::fs::Unmount</CODE></a> function and then run the <a href="../../nn/fs/MountSdmc.html"><CODE>nn::fs::MountSdmc</CODE></a> function again to mount it.</p><p><B>Note:</B> This is only for debugging and cannot be accessed from retail versions.</p><p>
72To use this function, you must add the <CODE>&quot;- Debug&quot;</CODE> attribute to the filesystem access permissions in your RSF file. For details, see <a href="../../../tools/ctr_makerom.html"><CODE>ctr_makerom</CODE></a>.
73            </p></div>
74<h2>Revision History</h2>
75    <div class="section">
76      <dl class="history">
77        <dt>2011/01/05</dt>
78<dd>Revised the description of <CODE>ResultMediaAccessError</CODE>.<br />
79        </dd>
80        <dt>2010/12/17</dt>
81<dd>Added <CODE>ResultBadFormat</CODE> to the results and removed <CODE>ResultWriteProtected</CODE>.
82        </dd>
83        <dt>2010/12/10</dt>
84<dd>Added a note related to the content of an RSF file.
85        </dd>
86        <dt>2010/09/10</dt>
87<dd>Initial version.<br />
88        </dd>
89      </dl>
90    </div>
91  <hr><p>CONFIDENTIAL</p></body>
92</html>