1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=utf-8"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>NandFiler</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9<STYLE type="text/css"> 10<!-- 11.sample_source{ 12 background-color : #e8e8e8; 13} 14H3{ 15 color : teal; 16} 17pre 18{ 19 display: compact; 20 font-family : "Courier New", monospace; 21 font-weight : normal; 22 font-size : normal; 23 24/* margin : 0pt 0pt 6pt 50pt;*/ 25 padding : 2pt 8pt 2pt 8pt; 26 background-color : #eee; 27 28 border-style : solid; 29 border-width : 1px; 30} 31.command_list{ 32 margin-bottom : 16pt; 33} 34.command_desc{ 35 } 36.command_item{ 37 margin-top : 16pt; 38 background-color : #e8e8e8; 39} 40.blockquoted_table { 41 border : 1px; 42 width : 80%; 43} 44TD.table,TH.table{ 45 border-color : #c0d8d8; 46 padding : 1pt 4pt 1pt 4pt; 47 border-width : 1px; 48 border-style : solid; 49} 50div.screen 51{ 52 float: left; 53 padding: 2px; 54 background-color: black; 55 margin: 0 0.5em 1em 1em; 56} 57ol, ul 58{ 59 padding-left: 4em; 60 margin-left: 0pt; 61} 62 63div.screen img.main 64{ 65 margin-bottom: 10px; 66} 67.warning 68{ 69 color: red; 70} 71table 72{ 73 left: 0; 74} 75table.plain td 76{ 77 border: none; 78 background-color: transparent; 79} 80--> 81</STYLE> 82</HEAD> 83<BODY> 84<H1 align="left">NandFiler</H1> 85<H2>Overview</H2> 86<P>The <CODE>NandFiler</CODE> tool manipulates data in the system memory (NAND). You can use it to delete, browse, and edit photo data, as well as the save data of the NAND application stored in Wii system memory. By using an SD Card, you can also use this tool to import and export save data. 87</P> 88 89<H2>Execution</H2> 90<P> 91Run it in the following ways. 92</P> 93<ul> 94<li>Using the IS-TWL-DEBUGGER software to run <CODE>NandFiler.srl</CODE> 95<li>Using the IS-TWL-DEBUGGER software to import and then run <CODE>NandFiler.tad</CODE> 96<li>Writing <CODE>NandFiler.srl</CODE> to a DS Game Card and then running it 97<li>Using TWL Nmenu to import and then run <CODE>NandFiler.tad</CODE> 98</ul> 99<P> 100If you are running the TWL Nmenu using the IS-TWL-DEBUGGER software, a "Please wait a moment" dialog box appears, and you will no longer be able to perform operations in the IS-TWL-DEBUGGER software. To exit, click <B>Force Quit</B> in the dialog box. 101</P> 102 103<H2>Mode</H2> 104<P>There are three modes in NandFiler.</P> 105<ul> 106 <li>Filer mode: Lets you traverse directories and check file sizes, timestamps, and attributes</li> 107 <li>View mode: Lets you browse file contents</li> 108 <li>Edit mode: Lets you edit file contents</li> 109</ul> 110 111<H2>Filer Mode</H2> 112<div class="screen"><img class="main" src="NandFiler/Filer_0.png"></div> 113<div class="screen"><img class="main" src="NandFiler/Filer_1.png"></div> 114<P> 115The <CODE>NandFiler</CODE> tool starts in Filer mode by default.<BR>In Filer mode, after you select either photo data, NAND application save data that has been already imported in the system, or SD Card data, you can browse and operate on that directory tree.<BR><FONT color=#ff0000>When you are browsing the contents of an SD Card, file and directory names will not appear if they use characters that cannot be converted to Shift_JIS.</FONT> <br clear="left"> 116 117The following table shows what operations you can perform. 118 119</P> 120<table class="table"> 121<tbody> 122<tr><th>Button<th>Operation 123<tr><td>SELECT<td>Displays a list of operations 124<tr><td>←→<td>Switches pages for the displayed items. 125<tr><td>↑↓<td>Selects files and so on. 126<tr><td>A<td>Confirms an item. 127<tr><td>B<td>Cancels the selected archive or file.<br>Moves to the parent directory. 128<tr><td>X<td>Opens a submenu when a file or archive is selected. 129</tbody> 130</table> 131 132<h3>Title Selection</h3> 133<P> 134This is the state immediately after startup. The left side of the screen displays links to the Game Code of the installed NAND application (blue), and to photo data and the SD Card (purple).<BR>Selecting a Game Code switches to archive selection in the center of the screen. Selecting a link to photo data or an SD Card switches to file selection on the right side of the screen. The following operations can be selected on the submenu displayed by pressing the X Button. 135<ul> 136 <li>Export ... Export data</li> 137 <li>Fill ... Fill the photo region</li> 138</ul> 139</P> 140 141<h4>Export</h4> 142<p> 143Copies files from the application's save data region or the PHOTO directory to the SD Card.<BR>A directory is created on the SD Card (named either [<CODE>4-digit game code_4-digit version</CODE>] or [<CODE>PHOTO</CODE>]), and then the data is copied there. 144 145</p> 146 147<h4>Fill</h4> 148<p> 149Writes photo data to the PHOTO directory, leaving the photo region with zero available memory.<BR>The photo data written using this process cannot be viewed with the Nintendo DSi Camera.<BR>This process may take 30 seconds or more to complete.<BR> 150</p> 151 152 153<h3><a name="Archive">Archive Selection</a></h3> 154<p> 155Selecting a Game Code under Title Selection moves here. For Archive Selection, you can choose <CODE>Public</CODE>, <CODE>Private</CODE>, or <CODE>SBanner</CODE>. These are links to the public save data, private save data, and sub-banner of the NAND application selected under Title Selection.<br>The following operations can be selected on the submenu displayed by pressing the X Button. 156</p> 157<ul> 158 <li>Backup: Backs up save data</li> 159 <li>Break: Destroys the save data region</li> 160 <li>Format: Formats the save data region or sub-banner</li> 161</ul> 162<p> 163However, the Backup and Break features do not exist in the sub-banner submenu. 164</p> 165 166<h4>Backup</h4> 167<p> 168Backs up save data on the SD card. The data backed up here can be imported using the <CODE>Restore</CODE> operation, described below.<BR><CODE>Backup</CODE> differs from the <CODE>Export</CODE> operation described above in that the entire file system of the save data region is copied to the SD card, but with Export, data is copied in file units. 169</p> 170 171<h4>Break</h4> 172<p> 173Destroys the FAT system region of the save data. Use this for debugging an assumed problem with the save data region causing <a href="../fs/fs_result_const.html"><CODE>FS_RESULT_BAD_FORMAT</CODE></a> to occur.<br> This tool can restore the destroyed save data region through any of the methods described below. 174</p> 175 176 <ul> 177 <li>Execute Backup before using Break and then use Restore after Break</li> 178<li>Run Format (files in the save data are deleted)</li> 179<li>Reimport the application in question on the TWL Nmenu</li> 180<li>Re-import using the IS-TWL-DEBUGGER software: Select <B>File → Load File → TAD</B> and the <B>Control imports</B> option</li> 181 </ul> 182<p> 183To restore while the application is running, use <a href="../na/archive/NA_FormatTitleArchive.html"><CODE>NA_FormatTitleArchive</CODE></a>. 184</p> 185 186<h4>Format</h4> 187<p> 188Initializes the save data and sub-banner. Restoration is possible if save data or sub-banner data becomes invalid using a break. 189</p> 190 191<h3>File Selection</h3> 192<P> 193If PHOTO or SD have been selected under Title Selection, selecting any save data under Archive Selection moves to here.<BR>A list of directories (yellow) and files (white) are displayed under File Selection.<br>When a directory is selected, press the A Button to browse the contents of that directory. When a file is selected, press the A Button to switch to View mode.<br> 194 195Following is the meaning of the information that is displayed at the top of the screen in File Selection. 196 197<table class="table"> 198<tbody> 199<tr><td>Size<td>File size. 200<tr><td>CTime<td>The time the file was created. 201<tr><td>MTime<td>The time the file was last modified. 202<tr><td>ATime<td>The time the file was last accessed. 203<tr><td>Attr<td>File attributes <BR>REA: Read-only files<BR>HID: Hidden files<BR>SYS: System files<BR>VOL: Volume level<BR>PRO: Protected files<BR>ARC: Archives 204<tr><td>Very bottom of screen<td>Full path to the selected file. 205</tbody> 206</table> 207 208 209The following operations can be selected on the submenu displayed by pressing the X Button. 210<ul> 211<li>Import: Imports Save Data</li> 212 <li>Delete: Deletes files and directories</li> 213 <li>Restore: Restores save data</li> 214</ul> 215</P> 216 217<h4>Import</h4> 218<p> 219This operation is valid for directories created with the <CODE>Export</CODE> operation. Note, however, that exported PHOTO directories cannot be imported.<BR>This operation copies data to the save data region of system memory. Provided the data does not exceed the size of the save data region of system memory, the data copied over by <CODE>Export</CODE> can be imported even if they have been altered. 220</p> 221 222<h4>Delete</h4> 223<p> 224Deletes a file or directory. If a directory is selected, files and directories inside the directory are deleted recursively. 225</p> 226 227<h4>Restore</h4> 228<p> 229This operation is only valid for save data backup files created using the Backup feature. The backup file on the SD card is imported to system NAND memory.<BR>Note that importing backup files will fail in the cases given below. 230 <ul> 231 <li>When the backup file has been modified</li> 232 <li>When the backup file name has been changed</li> 233 <li>When the corresponding application has been deleted</li> 234 <li>When the save data save size of the application in question has changed</li> 235 </ul> 236</p> 237 238 239 240<H2>View Mode</H2> 241<P> 242<div class="screen"><img class="main" src="NandFiler/Viewer_0.png"></div> 243 244In View mode, you can view file contents. The displayed filename and addresses are shown on the upper screen. <BR>The content of the file (binary values and corresponding characters) is shown on the lower screen.<BR> <BR> 245</P> 246 247<br clear="left"> 248 249 250<p> 251The following specifications apply to the display of characters. 252<ul> 253<li><CODE>0x00</CODE> can be replaced by <CODE>0x20</CODE> (by a space)</li> 254<li><CODE>0x20</CODE> to <CODE>0x7A</CODE> conform to ASCII code</li> 255<li>Other regions display hiragana and katakana (font incorporated as sample)</li> 256</ul> 257</p> 258 259The following table shows what operations you can perform. 260 261<table class="table"> 262<tbody> 263<tr><th>Button<th>Operation 264<tr><td>←→<td>Scrolls one page at a time. 265<tr><td>↑↓<td>Scrolls (one line at a time). 266<tr><td>A<td>Switches to Edit mode. 267<tr><td>B<td>Switches to <CODE>Filer</CODE> mode.<BR>If file has been edited in Edit mode, it will be saved. 268</tbody> 269</table> 270 271 272<H2>Edit Mode</H2> 273 274<P> 275<div class="screen"><img class="main" src="NandFiler/Editor_0.png"></div> 276Edit mode lets you edit files.<BR>Take note of the following restrictions. 277</P> 278 279<br clear="left"> 280<h4>Editing restrictions</h4> 281<ul> 282<li>There is no support for changes in file size.</li> 283<li>When the file being edited is larger than 14M, if regions near the start and the end of the file are edited at the same time, earlier changes will not be reflected.</li> 284</ul> 285 286<h3>Non-Editing State</h3> 287<p>This state occurs when entering Edit mode.</p> 288<table class="table"> 289<tbody> 290<tr><th>Button<th>Operation 291<tr><td>←→↑↓<td>Moves the cursor 292<tr><td>A<td>Switches to the editing state 293<tr><td>B<td>Switches to View mode 294</tbody> 295</table> 296 297<h3>Editing State</h3> 298 299<table class="table"> 300<tbody> 301<tr><th>Button<th>Operation 302<tr><td>←→↑↓<td>Moves the cursor 303<tr><td>B<td>Switches to the non-editing state<BR> 304<tr><td>L, R<td>Increase, Decrease value 305</tbody> 306</table> 307 308<P> 309Pressing the L or R Buttons in the editing state will change the value at the current cursor position.<BR>Locations where any edits have been made will appear in green. The cursor can be moved freely even in the editing state, but the horizontal range of movement is reduced compared to the non-editing state.<BR>To save edits, select <B>Yes</B> from the choices displayed when you press the B Button in View mode.<BR> 310</P> 311<H2>Location</H2> 312<P><CODE>$TwlSDK/bin/ARM9-TS/Rom/NandFiler.srl<br> $TwlSDK/bin/ARM9-TS/Rom/NandFiler.tad</CODE></P> 313 314<H2>See Also</H2> 315 316<H2>Revision History</H2> 317<P> 3182009/12/25 Added photo region fill feature.<br>2009/11/30 Removed the <code>Delete</code> and <code>Size0</code> features from Archive Selection. There is no longer any need to support these errors.<br>2009/05/20 Noted that non-Shift_JIS filenames on an SD Card are not displayed; added sub-banners to Archive Selection; and added the <CODE>Delete</CODE>, <CODE>Size0</CODE>, and <CODE>Format</CODE> features. <br>2009/02/18 Added text related to the <CODE>Break</CODE> feature and <CODE>FS_RESULT_BAD_FORMAT</CODE>. <br>2008/01/13 Added text for the <CODE>Import</CODE> and <CODE>Export</CODE> features. <br>2008/12/08 Mentioned restrictions when editing. <br>2008/11/26 Complied with added screenshots and changes to operations. <br>2008/10/21 Added text for the <CODE>Backup</CODE> and <CODE>Restore</CODE> features. <br>2008/09/16 Added text for the <CODE>Break</CODE> feature. <br>2008/07/18 In <B>Location</B>, changed "Release" to "Rom." <br>2008/07/14 Changed terminology. <br>2008/07/07 Initial version. 319</P> 320<hr><p>CONFIDENTIAL</p></body> 321</HTML>