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 &quot;Please wait a moment&quot; 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</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 is copied there.
143
144</p>
145
146
147<h3><a name="Archive">Archive Selection</a></h3>
148<p>
149Selecting 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.
150</p>
151<ul>
152	<li>Backup: Backs up save data</li>
153	<li>Break: Destroys the save data region</li>
154	<li>Format: Formats the save data region or sub-banner</li>
155</ul>
156<p>
157However, the Backup and Break features do not exist in the sub-banner submenu.
158</p>
159
160<h4>Backup</h4>
161<p>
162Backs 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.
163</p>
164
165<h4>Break</h4>
166<p>
167Destroys 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.
168</p>
169
170    <ul>
171	    <li>Execute Backup before using Break and then use Restore after Break</li>
172<li>Run Format (files in the save data are deleted)</li>
173<li>Reimport the application in question on the TWL Nmenu</li>
174<li>Re-import using the IS-TWL-DEBUGGER software: Select <B>File → Load File → TAD</B> and the <B>Control imports</B> option</li>
175    </ul>
176<p>
177To restore while the application is running, use <a href="../na/archive/NA_FormatTitleArchive.html"><CODE>NA_FormatTitleArchive</CODE></a>.
178</p>
179
180<h4>Format</h4>
181<p>
182Initializes the save data and sub-banner. Restoration is possible if save data or sub-banner data becomes invalid using a break.
183</p>
184
185<h3>File Selection</h3>
186<P>
187If 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>
188
189Following is the meaning of the information that is displayed at the top of the screen in File Selection.
190
191<table class="table">
192<tbody>
193<tr><td>Size<td>File size.
194<tr><td>CTime<td>The time the file was created.
195<tr><td>MTime<td>The time the file was last modified.
196<tr><td>ATime<td>The time the file was last accessed.
197<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
198<tr><td>Very bottom of screen<td>Full path to the selected file.
199</tbody>
200</table>
201
202
203The following operations can be selected on the submenu displayed by pressing the X Button.
204<ul>
205<li>Import: Imports Save Data</li>
206	<li>Delete: Deletes files and directories</li>
207	<li>Restore: Restores save data</li>
208</ul>
209</P>
210
211<h4>Import</h4>
212<p>
213This 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.
214</p>
215
216<h4>Delete</h4>
217<p>
218Deletes a file or directory. If a directory is selected, files and directories inside the directory are deleted recursively.
219</p>
220
221<h4>Restore</h4>
222<p>
223This 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.
224    <ul>
225	    <li>When the backup file has been modified</li>
226	    <li>When the backup file name has been changed</li>
227	    <li>When the corresponding application has been deleted</li>
228	    <li>When the save data save size of the application in question has changed</li>
229    </ul>
230</p>
231
232
233
234<H2>View Mode</H2>
235<P>
236<div class="screen"><img class="main" src="NandFiler/Viewer_0.png"></div>
237
238In 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>
239</P>
240
241<br clear="left">
242
243
244<p>
245The following specifications apply to the display of characters.
246<ul>
247<li><CODE>0x00</CODE> can be replaced by <CODE>0x20</CODE> (by a space)</li>
248<li><CODE>0x20</CODE> to <CODE>0x7A</CODE> conform to ASCII code</li>
249<li>Other regions display hiragana and katakana (font incorporated as sample)</li>
250</ul>
251</p>
252
253The following table shows what operations you can perform.
254
255<table class="table">
256<tbody>
257<tr><th>Button<th>Operation
258<tr><td>←→<td>Scrolls one page at a time.
259<tr><td>↑↓<td>Scrolls (one line at a time).
260<tr><td>A<td>Switches to Edit mode.
261<tr><td>B<td>Switches to <CODE>Filer</CODE> mode.<BR>If file has been edited in Edit mode, it will be saved.
262</tbody>
263</table>
264
265
266<H2>Edit Mode</H2>
267
268<P>
269<div class="screen"><img class="main" src="NandFiler/Editor_0.png"></div>
270Edit mode lets you edit files.<BR>Take note of the following restrictions.
271</P>
272
273<br clear="left">
274<h4>Editing restrictions</h4>
275<ul>
276<li>There is no support for changes in file size.</li>
277<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>
278</ul>
279
280<h3>Non-Editing State</h3>
281<p>This state occurs when entering Edit mode.</p>
282<table class="table">
283<tbody>
284<tr><th>Button<th>Operation
285<tr><td>←→↑↓<td>Moves the cursor
286<tr><td>A<td>Switches to the editing state
287<tr><td>B<td>Switches to View mode
288</tbody>
289</table>
290
291<h3>Editing State</h3>
292
293<table class="table">
294<tbody>
295<tr><th>Button<th>Operation
296<tr><td>←→↑↓<td>Moves the cursor
297<tr><td>B<td>Switches to the non-editing state<BR>
298<tr><td>L, R<td>Increase, Decrease value
299</tbody>
300</table>
301
302<P>
303Pressing 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>
304</P>
305<H2>Location</H2>
306<P><CODE>$TwlSDK/bin/ARM9-TS/Rom/NandFiler.srl<br> $TwlSDK/bin/ARM9-TS/Rom/NandFiler.tad</CODE></P>
307
308<H2>See Also</H2>
309
310<H2>Revision History</H2>
311<P>
3122009/11/30 Deleted the archive selection &quot;Delete&quot; and &quot;Size0&quot; features. 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 &quot;Release&quot; to &quot;Rom.&quot; <br>2008/07/14 Changed terminology. <br>2008/07/07 Initial version.
313</P>
314<hr><p>CONFIDENTIAL</p></body>
315</HTML>