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>MountSaveData</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../nn/Overview.html">nn</a>::<a href="../../nn/fs/Overview.html">fs</a>::MountSaveData</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14<a href="../../nn/Result/Overview.html">Result</a> MountSaveData( 15 const char * archiveName = "data:" 16); 17 18<a href="../../nn/Result/Overview.html">Result</a> MountSaveData( 19 const char * archiveName, 20 <a href="../../nn_types/bit32.html">bit32</a> uniqueId 21); 22</pre> 23 </div> 24<h2>List of Overloaded Member Functions</h2> 25 <div class="section"> 26 <table class="members"> 27 <tr> 28 <td> 29<a href="./MountSaveData(0).html"><CODE>MountSaveData ( const char * )</CODE> </a> 30 </td> 31<td>Mounts a save data archive.</td> 32 </tr> 33 <tr> 34 <td> 35<a href="./MountSaveData(1).html"><CODE>MountSaveData ( const char *, bit32 )</CODE> </a> 36 </td> 37<td>Mounts the save data archive that is in another application.</td> 38 </tr> </table> 39 </div> 40<h2>Description of <CODE>MountSaveData ( const char * )</CODE></h2> 41<div class="section"><p>Mounts an application-specific save data region and gives it the specified archive name. The save data region must be formatted before it can be used.</p><p>Be sure to check the return value when you call this function to determine whether the save data region is invalid. If the save data region is invalid, call the <a href="../../nn/fs/FormatSaveData.html"><CODE>FormatSaveData</CODE></a> function to initialize it. Call this function again afterwards to mount it.</p><p> 42The following page has hints on how to handle mount errors. Please use this as a reference. 43</p><ul><li><a href="briefing/aboutErrorHandling.html#Mounting_SaveDataArchive"><a href="briefing/aboutErrorHandling.html#Mounting_SaveDataArchive">Handling Mount Errors: Save Data Archives</a></a></li></ul></div> 44<h2>Description of <CODE>MountSaveData ( const char *, bit32 )</CODE></h2> 45<div class="section"><p>The save data region of another application is mounted as a save data archive. The other application is specified by specifying its unique ID.</p><p>There is no ironclad guarantee that the save data this function is supposed to mount actually exists. For this reason, you need to prepare adequate error handling.</p><p>There are restrictions on the unique IDs that this function can specify, so for proper access you need to make the necessary descriptions in the RSF files of the programs that call this function. For details, see the <CODE><ulink url="../../../../tools/ctr_makerom.html#rsf">ctr_makerom</ulink></CODE> reference.</p><p> 46The following page has hints on how to handle mount errors. Please use this as a reference. 47</p><ul><li><a href="briefing/aboutErrorHandling.html#Mounting_SaveDataArchive"><a href="briefing/aboutErrorHandling.html#Mounting_SaveDataArchive">Handling Mount Errors: Save Data Archives</a></a></li></ul></div> 48 <hr><p>CONFIDENTIAL</p></body> 49</html>