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    <style type="text/css"><!--
8      span.static_style
9      {
10        font-size           : 8pt;
11        color               : white;
12        font-weight         : bold;
13        background          : #44f;
14        border-left         : solid 1px #aaf;
15        border-top          : solid 1px #aaf;
16        border-right        : solid 1px #00c;
17        border-bottom       : solid 1px #00c;
18        padding-left        : 2px;
19        padding-right       : 2px;
20      }
21
22      span.virtual_style
23      {
24        font-size           : 8pt;
25        color               : white;
26        font-weight         : bold;
27        background          : #0a0;
28        border-left         : solid 1px #0f0;
29        border-top          : solid 1px #0f0;
30        border-right        : solid 1px #060;
31        border-bottom       : solid 1px #060;
32        padding-left        : 2px;
33        padding-right       : 2px;
34      }
35
36      span.protected_style
37      {
38        font-size           : 8pt;
39        color               : white;
40        font-weight         : bold;
41        background          : #444;
42        border-left         : solid 1px #ccc;
43        border-top          : solid 1px #ccc;
44        border-right        : solid 1px #222;
45        border-bottom       : solid 1px #222;
46        padding-left        : 2px;
47        padding-right       : 2px;
48      }
49      table.table, table.table td, table.table th
50      {
51        border-collapse: collapse;
52        background-color: white;
53      }
54
55      table.table
56      {
57        width: auto;
58        margin: 1em;
59        position    : static;
60        font-family : Arial;
61      }
62
63      table.table td, table.table th
64      {
65        padding: 0.2em;
66      }
67
68      table.table td.number, table.table th.number
69      {
70        text-align: right;
71      }
72
73      table.table tbody tr th
74      {
75        text-align: left;
76        font-weight: normal;
77        width: auto;
78      }
79
80      table.table thead tr th,
81      table.table tbody tr th.category
82      {
83        padding: 0 0.2em;
84      }
85
86      table.table caption
87      {
88        font-weight: bold;
89        padding: 0.4em;
90      }
91      table.table th
92      {
93        font-weight            : bold;
94        background            : #acf;
95      }
96        --></style>
97
98    <title>TwlNandFiler</title>
99  </head>
100
101<body>
102  <h1><CODE>TwlNandFiler</CODE></h1>
103
104  <h2>Overview</h2>
105  <p>
106    The <CODE>TwlNandFiler</CODE> tool manipulates data in the <CODE>CTR</CODE> system <CODE>NAND</CODE> memory (TWL region). You can use it to delete, browse, and edit photo data, as well as, <CODE>DSiWare</CODE> save data stored in the system <CODE>NAND</CODE> memory.<BR> By using an SD Card, you can also use this tool to import and export save data.
107  </p>
108
109  <h2>Run</h2>
110  <p>
111    First import <CODE>TwlNandFiler.cia</CODE> using the Import tab of <a href="./DevMenu.html"><CODE>DevMenu</CODE></a>, and then select &quot;<CODE>TWL NandFiler</CODE>&quot; to run it.
112  </p>
113
114  <h2>Mode</h2>
115  <p>There are three modes in <CODE>TwlNandFiler</CODE>.</p>
116  <ul>
117    <li><CODE>Filer</CODE> mode: Lets you traverse directories and check file sizes, timestamps, and attributes.</li>
118    <li><CODE>View</CODE> mode: Lets you browse file contents.</li>
119    <li><CODE>Edit</CODE> mode: Lets you edit file contents.</li>
120  </ul>
121
122  <h2><CODE>Filer</CODE> Mode</h2>
123  <img src="TwlNandFiler/Filer_0.png"> <img src="TwlNandFiler/Filer_1.png">
124  <p>
125    The <CODE>TwlNandFiler</CODE> tool starts in <CODE>Filer</CODE> mode by default.<br /> In <CODE>Filer</CODE> mode, after you select either photo data, <CODE>DSiWare</CODE> 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>
126  </p>
127
128The following table shows what operations can be performed.
129  <table class="table">
130    <tbody>
131    <tr><th>Button<th>Operation
132    <tr><td>SELECT<td>Displays a list of operations
133    <tr><td>←→<td>Switches pages for the displayed items.
134    <tr><td>↑↓<td>Selects files and so on.
135    <tr><td>A<td>Confirms an item.
136    <tr><td>B<td>Cancels the archive or file selection.<br />Moves to the parent directory.
137    <tr><td>X<td>Opens a submenu when a file or archive is selected.
138    </tbody>
139  </table>
140
141  <h3>Title Selection</h3>
142  <p>
143    This is the state immediately after startup. The left side of the screen displays links (shown in yellow) to the Game Code (shown in blue) of the installed <CODE>DSiWare</CODE>, and to photo data and the SD Card.<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.<BR> The following operations can be selected on the submenu displayed by pressing the X Button.
144    <ul>
145      <li>Export ... Export data.</li>
146      <li>Fill ... Fill the photo region.</li>
147    </ul>
148  </p>
149
150  <h4>Export</h4>
151  <p>
152Copies 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 [4-digit game code_FFFF] or [PHOTO]), and then the data is copied there.
153
154  </p>
155
156  <h4>Fill</h4>
157  <p>
158    Writes photo data to the PHOTO directory, leaving the photo region with zero available memory.<br /> This process may take several dozen seconds to complete.<br />
159  </p>
160
161
162  <h3><a name="Archive">Archive Selection</a></h3>
163  <p>
164Selecting 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 <CODE>DSiWare</CODE> selected under Title Selection.<br /> The following operations can be selected on the submenu that is displayed by pressing the X Button.
165  </p>
166  <ul>
167    <li><CODE>Backup</CODE>: Backs up save data.</li>
168    <li><CODE>Break</CODE>: Destroys the save data region.</li>
169    <li><CODE>Format</CODE>: Formats the save data region or sub-banner.</li>
170  </ul>
171  <p>
172    However, the <CODE>Backup</CODE> and <CODE>Break</CODE> features do not exist in the sub-banner submenu.
173  </p>
174
175  <h4>Backup</h4>
176  <p>
177    Backs 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.
178  </p>
179
180  <h4>Break</h4>
181  <p>
182    Destroys the FAT system region of the save data. This can be used for debugging when you think the <CODE>DSiWare</CODE> save data region may cause an error.<br /> For details, see the <CODE>TWL-SDK</CODE> reference.<BR> This tool can restore the destroyed save data region through any of the methods described below.
183  </p>
184
185  <ul>
186    <li>Execute <CODE>Backup</CODE> before using <CODE>Break</CODE> and then use <CODE>Restore</CODE> after Break.</li>
187    <li>Run <CODE>Format</CODE> (files in the save data are deleted).</li>
188    <li>Re-import the application.</li>
189  </ul>
190
191  <h4>Format</h4>
192  <p>
193    Initializes the save data and sub-banner.<BR> Restoration is possible if save data or sub-banner data becomes invalid using a break.
194  </p>
195
196  <h3>File Selection</h3>
197  <p>
198    If <CODE>PHOTO</CODE> or <CODE>SD</CODE> 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.<BR> When a file is selected , press the A Button to switch to <CODE>View</CODE> mode.<br />
199  </p>
200
201  The following is the meaning of information that is displayed at the top of the screen in File Selection.
202  <table class="table">
203    <tbody>
204      <tr><td>Size:<td>File size.
205      <tr><td>CTime:<td>The time the file was created.
206      <tr><td>MTime:<td>The time the file was last modified.
207      <tr><td>ATime:<td>The time the file was last accessed.
208      <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
209      <tr><td>Very bottom of screen<td>Full path to the selected file.
210    </tbody>
211  </table>
212
213  <p>
214    The following operations can be selected on the submenu that is displayed by pressing the X Button.
215    <ul>
216      <li>Import: Imports Save Data.</li>
217      <li>Delete: Deletes files and directories.</li>
218      <li>Restore: Restores save data.</li>
219    </ul>
220  </p>
221
222  <h4>Import</h4>
223  <p>
224    This 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 it has been altered.
225  </p>
226
227  <h4>Delete</h4>
228  <p>
229      Deletes a file or directory. If a directory is selected, files and directories inside the directory are deleted recursively.
230  </p>
231
232  <h4>Restore</h4>
233  <p>
234    This 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.
235    <ul>
236      <li>When the backup file has been modified.</li>
237      <li>When the backup file name has been changed.</li>
238      <li>When the corresponding application has been deleted.</li>
239      <li>When the save data save size of the application in question has changed.</li>
240    </ul>
241  </p>
242
243
244  <h2>View Mode</h2>
245  <p>
246    <img src="TwlNandFiler/Viewer_0.png">
247  </p>
248  <p>
249    In 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 />
250  </p>
251
252  <p>
253    The following specifications apply to the display of characters.
254    <ul>
255      <li><CODE>0x00</CODE> can be replaced by <CODE>0x20</CODE> (a space).</li>
256      <li><CODE>0x20</CODE> to <CODE>0x7A</CODE> conform to ASCII code.</li>
257      <li>Other regions display hiragana and katakana (font incorporated as sample).</li>
258    </ul>
259  </p>
260
261  The following table shows what operations can be performed.
262
263  <table class="table">
264    <tbody>
265      <tr><th>Button<th>Operation
266      <tr><td>←→<td>Scrolls one page at a time.
267      <tr><td>↑↓<td>Scrolls (one line at a time).
268      <tr><td>A<td>Switches to Edit mode.
269      <tr><td>B<td>Switches to <CODE>Filer</CODE> mode.<br />If a file has been edited in <CODE>Edit</CODE> mode, it will be saved.
270    </tbody>
271  </table>
272
273
274  <h2>Edit Mode</h2>
275
276  <p>
277    <img src="TwlNandFiler/Editor_0.png">
278  </p>
279  <p>
280    <CODE>Edit</CODE> mode lets you edit files.<br /> Take note of the following restrictions.
281  </p>
282
283  <h4>Editing restrictions</h4>
284  <ul>
285          <li>There is no support for changes in file size.</li>
286          <li>When the file being edited is larger than 14MB, if regions near the start and the end of the file are edited at the same time, earlier changes will not be reflected.</li>
287  </ul>
288
289  <h3>Non-Editing State</h3>
290  <p>This state occurs when entering Edit mode.</p>
291  <table class="table">
292    <tbody>
293      <tr><th>Button<th>Operation
294      <tr><td>←→↑↓<td>Moves the cursor
295      <tr><td>A<td>Switches to the editing state
296      <tr><td>B<td>Switches to View mode
297    </tbody>
298  </table>
299
300  <h3>Editing State</h3>
301
302  <table class="table">
303    <tbody>
304      <tr><th>Button<th>Operation
305      <tr><td>←→↑↓<td>Moves the cursor
306      <tr><td>B<td>Switches to the non-editing state<br />
307      <tr><td>L, R<td>Increase, Decrease value
308    </tbody>
309  </table>
310
311  <p>
312    Pressing 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 />
313  </p>
314
315  <h2>Revision History</h2>
316    <div class="section">
317      <dl class="history">
318        <dt>2011/12/15</dt>
319        <dd>Initial version.<br /></dd>
320      </dl>
321    </div>
322<hr><p>CONFIDENTIAL</p></body>
323</html>