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=windows-1252"> 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>NandFiler is a tool for manipulating data in the system memory (NAND). It can be used 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, this tool can also be used to import and export Save Data. 87</P> 88 89<H2>Execution</H2> 90<P> 91It can be run 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 running the TWL Nmenu using the IS-TWL-DEBUGGER software, a "Please wait a moment" dialog box will appear, 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 NandFiler application is started in Filer mode by default.<BR>In <CODE>Filer</CODE> 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> <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>&larr; &rarr;<td>Switches pages for the displayed items. 125<tr><td>&uarr; &darr;<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 will switch to archive selection in the center of the screen. Selecting a link to photo data or an SD card will switch 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</ul> 138</P> 139 140<h4>Export</h4> 141<p> 142Copies 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 are copied there. 143 144</p> 145 146 147<h3>Archive Selection</h3> 148<P> 149Selecting a Game Code under Title Selection moves here. For Archive Selection, you can choose either <CODE>Public</CODE> or <CODE>Private</CODE>.<br>These are links to the public save data and private save data of the NAND application selected under Title Selection.<br>The following operations can be selected on the submenu displayed by pressing the X Button. 150<ul> 151 <li>Backup: Backs up save data</li> 152 <li>Break: Destroys the save data region</li> 153</ul> 154</P> 155 156<h4>Backup</h4> 157<p> 158Backs 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, whereas with Export, data are copied in file units. 159</p> 160 161<h4>Break</h4> 162<p> 163Destroys 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> The destroyed save data region can be restored with this tool using any of the methods described below.</p> 164 165 <ul> 166 <li>Execute Backup before using Break and then use Restore after Break</li> 167<li>Reimport the application in question on the TWL Nmenu</li> 168 </ul> 169<p>To restore while the application is running, use <a href="../na/archive/NA_FormatTitleArchive.html"><CODE>NA_FormatTitleArchive</CODE></a>.</p> 170 171<h3>File Selection</h3> 172<P> 173If PHOTO or SD have been selected under Title Selection, selecting any save data under Archive Selection will move to here.<BR>A list of directories (yellow) and files (white) are displayed under File Selection.<br>Press the A Button when a directory is selected to browse the contents of that directory. Press the A Button when a file is selected to switch to View mode.<br> 174 175Following is the meaning of the information that is displayed at the top of the screen in File Selection. 176 177<table class="table"> 178<tbody> 179<tr><td>Size<td>File size. 180<tr><td>CTime<td>The time the file was created. 181<tr><td>MTime<td>The time the file was last modified. 182<tr><td>ATime<td>The time the file was last accessed. 183<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 184<tr><td>Very bottom of screen<td>Full path to the selected file. 185</tbody> 186</table> 187 188 189The following operations can be selected on the submenu displayed by pressing the X Button. 190<ul> 191<li>Import ... Imports Save Data</li> 192 <li>Delete: Deletes files and directories</li> 193 <li>Restore: Restores save data</li> 194</ul> 195</P> 196 197<h4>Import</h4> 198<p> 199This 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. 200</p> 201 202<h4>Delete</h4> 203<p> 204Deletes a file or directory. If a directory is selected, files and directories inside the directory are deleted recursively. 205</p> 206 207<h4>Restore</h4> 208<p> 209This 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. 210 <ul> 211 <li>When the backup file has been modified</li> 212 <li>When the backup file name has been changed</li> 213 <li>When the corresponding application has been deleted</li> 214 <li>When the save data save size of the application in question has changed</li> 215 </ul> 216</p> 217 218 219 220<H2>View Mode</H2> 221<P> 222<div class="screen"><img class="main" src="NandFiler/Viewer_0.png"></div> 223 224In 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> 225</P> 226 227<br clear="left"> 228 229 230<p> 231The following specifications apply to the display of characters. 232<ul> 233<li>0x00 can be replaced by 0x20 (by a space)</li> 234<li>0x20 to 0x7A conform to ASCII code</li> 235<li>Other regions display hiragana and katakana (font incorporated as sample)</li> 236</ul> 237</p> 238 239The following table shows what operations you can perform. 240 241<table class="table"> 242<tbody> 243<tr><th>Button<th>Operation 244<tr><td>&larr; &rarr;<td>Scrolls one page at a time. 245<tr><td>&uarr; &darr;<td>Scrolls (one line at a time). 246<tr><td>A<td>Switches to Edit mode. 247<tr><td>B<td>Switches to <CODE>Filer</CODE> mode.<BR>If file has been edited in Edit mode, it will be saved. 248</tbody> 249</table> 250 251 252<H2>Edit Mode</H2> 253 254<P> 255<div class="screen"><img class="main" src="NandFiler/Editor_0.png"></div> 256Edit mode lets you edit files.<BR>Take note of the following restrictions. 257</P> 258 259<br clear="left"> 260<h4>Editing restrictions</h4> 261<ul> 262<li>There is no support for changes in file size.</li> 263<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> 264</ul> 265 266<h3>Non-Editing State</h3> 267<p>This state occurs when entering Edit mode.</p> 268<table class="table"> 269<tbody> 270<tr><th>Button<th>Operation 271<tr><td>&larr; &rarr; &uarr; &darr;<td>Moves the cursor 272<tr><td>A<td>Switches to the editing state 273<tr><td>B<td>Switches to View mode 274</tbody> 275</table> 276 277<h3>Editing State</h3> 278 279<table class="table"> 280<tbody> 281<tr><th>Button<th>Operation 282<tr><td>&larr; &rarr; &uarr; &darr;<td>Moves the cursor 283<tr><td>B<td>Switches to the non-editing state<BR> 284<tr><td>L, R<td>Increase, Decrease value 285</tbody> 286</table> 287 288<P> 289Pressing 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> 290</P> 291<H2>Location</H2> 292<P><CODE>$TwlSDK/bin/ARM9-TS/Rom/NandFiler.srl<br> $TwlSDK/bin/ARM9-TS/Rom/NandFiler.tad</CODE></P> 293 294<H2>See Also</H2> 295 296<H2>Revision History</H2> 297<P> 2982009/02/18 Added text about the <CODE>Break</CODE> feature and <CODE>FS_RESULT_BAD_FORMAT</CODE>.<br> 2008/01/13 Added text about the <CODE>Import</CODE> and <CODE>Export</CODE> features.<br> 2008/12/08 Added mention of restrictions when editing.<br> 2008/11/26 Complied with addition of screenshots and changes to operations.<br> 2008/10/21 Added text about the <CODE>Backup</CODE> and <CODE>Restore</CODE> features.<br> 2008/09/16 Added text about 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. 299</P> 300<hr><p>CONFIDENTIAL</p></body> 301</HTML>