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 http-equiv="Content-Style-Type" content="text/css">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows">
7<TITLE>cardedit</TITLE>
8<LINK rel="stylesheet" href="../CSS/revolution.css">
9</HEAD>
10<BODY>
11<H1 align="left">cardedit.elf</H1>
12<H2>Description</H2>
13<P>The <CODE>cardedit.elf</CODE> program is a GUI based Memory Card utility program that can create GameCube Memory Cards in various conditions. This program is mainly designed for quality control and bug testing purposes.</P>
14<BLOCKQUOTE>
15<PRE><CODE>% ndrun cardedit.elf</CODE></PRE>
16</BLOCKQUOTE>
17<H2>Operation Method</H2>
18<P>To select the highlighted item, press the A Button<br>To go back to previous menu, press the B Button<br>To cycle through the menu items, move the Control Stick Up/Down.<SUP>*</SUP><br>To cycle through the file list items, move the C Stick Up/Down to select the files to corrupt icons/banners.<SUP>*</SUP><br>To change the block size of the file, press Up/Down on the +Control Pad.<SUP>*</SUP><br>To select the slot, move the C Stick Left/Right or press the L/R Button.<br><br><SUP>*</SUP>If the Control Stick or +Control Pad is held Up/Down, the highlight continuously moves up/down.</P>
19<H2>Menu Items</H2>
20<H3>Region Format</H3>
21<TABLE border="1">
22  <TBODY>
23    <TR>
24<TD><B>Option</B></TD>
25<TD>Description</TD>
26    </TR>
27    <TR>
28<TD><B>FORMAT ANSI<SUP>*</SUP></B></TD>
29<TD>Format Memory Card to ANSI format.</TD>
30    </TR>
31    <TR>
32<TD><B>FORMAT SJIS<SUP>*</SUP></B></TD>
33<TD>Format memory card to SJIS format.</TD>
34    </TR>
35  </TBODY>
36</TABLE>
37<P><SUP>*</SUP> Yuu can change to a different encoding format without rebooting the development kit.</P>
38<H3>Corrupt</H3>
39<TABLE border="1">
40  <TBODY>
41    <TR>
42<TD><B>Option</B></TD>
43<TD>Description</TD>
44<TD>Recoverable</TD>
45    </TR>
46    <TR>
47<TD><B>Corrupt C0</B></TD>
48<TD>Corrupt Memory Card system blocks.</TD>
49<TD align="center"><B>No</B></TD>
50    </TR>
51    <TR>
52<TD><B>Corrupt C1</B></TD>
53<TD>Corrupt Memory Card system blocks.</TD>
54<TD align="center"><B>No</B></TD>
55    </TR>
56    <TR>
57<TD><B>Corrupt RC0 </B></TD>
58<TD>Corrupt Memory Card system blocks (recoverable).</TD>
59<TD align="center">Yes<SUP>*</SUP></TD>
60    </TR>
61    <TR>
62<TD><B>Corrupt user data blocks</B></TD>
63<TD>Corrupt all user blocks on the Memory Card.</TD>
64<TD align="center"><B>No</B></TD>
65    </TR>
66    <TR>
67<TD><B>Corrupt all</B></TD>
68<TD>Corrupt all the blocks of the memory card (default).</TD>
69<TD align="center"><B>No</B></TD>
70    </TR>
71  </TBODY>
72</TABLE>
73<P><SUP>*</SUP> The <CODE>CARDCheck</CODE> function can recover the file system if it is recoverable.</P>
74<H3>Creating a File</H3>
75<TABLE border="1">
76  <TBODY>
77    <TR>
78<TD><B>Option</B></TD>
79<TD>Description</TD>
80    </TR>
81    <TR>
82<TD><B>Create a file (Max blocks)</B></TD>
83<TD>Create a file with variable block size. (Press +Control Pad Up/Down to change the file size).</TD>
84    </TR>
85    <TR>
86<TD><B>Create a file (16 Blocks)</B></TD>
87<TD>Create a 16 block file.</TD>
88    </TR>
89    <TR>
90<TD><B>Create a file (8 Blocks)</B></TD>
91<TD>Create an 8 block file.</TD>
92    </TR>
93    <TR>
94<TD><B>Create a file (2 Blocks)</B></TD>
95<TD>Create a 2 block file.</TD>
96    </TR>
97    <TR>
98<TD><B>Create a file (1 Block)</B></TD>
99<TD>Create a 1 block file.</TD>
100    </TR>
101    <TR>
102<TD><B>FILL with a one block file</B></TD>
103<TD>Fill with a one block file.</TD>
104    </TR>
105  </TBODY>
106</TABLE>
107<H3>Deleting Files</H3>
108<TABLE border="1">
109  <TBODY>
110    <TR>
111<TD><B>Option</B></TD>
112<TD>Description</TD>
113    </TR>
114    <TR>
115<TD><B>Delete all files</B></TD>
116<TD>Delete all the files in a Memory Card. <SUP>*</SUP></TD>
117    </TR>
118  </TBODY>
119</TABLE>
120<P><SUP>*</SUP>Memory Card utility program can't delete a file that doesn't have ownership.</P>
121<H3>Repairing a Memory Card</H3>
122<TABLE border="1">
123  <TBODY>
124    <TR>
125<TD><B>Option</B></TD>
126<TD>Description</TD>
127    </TR>
128    <TR>
129<TD><B>Repair Memory Card (if repairable.)</B></TD>
130<TD>Repair the memory card if repairable.</TD>
131    </TR>
132  </TBODY>
133</TABLE>
134<h3>Displaying List Files and Corrupting Icons and Comments</h3>
135
136<table border="1">
137  <tr>
138<td><B>Option</B></td>
139<td>Description</td>
140  </tr>
141  <tr>
142<td><B>Corrupting the region for icons and comments</B></td>
143<td>Corrupt the banner, icons, and comments of the selected file. <BR>Your game program must be able to detect a corrupted banner (if there is one), icons, and comments and fix the problem if corrupted data is loaded. This option allows you to corrupt a banner, icons, and comments while leaving other user data and system file data intact.</td>
144  </tr>
145</table>
146
147&nbsp;
148
149<table border="1">
150  <tr>
151<td><B>List Items</B></td>
152<td>Description</td>
153  </tr>
154  <tr>
155<td><B>Number</B></td>
156<td>File index number of the selected file.</td>
157  </tr>
158  <tr>
159<td><B>File Name</B></td>
160<td>File name of the selected file.</td>
161  </tr>
162  <tr>
163<td><B>Game</B></td>
164<td>Game code of the selected file (<SUP>*</SUP>see below for details)</td>
165  </tr>
166  <tr>
167<td><B>Company Code</B></td>
168<td>Company code of the selected file (<SUP>*</SUP>see below for details).</td>
169  </tr>
170  <tr>
171<td><B>Size</B></td>
172<td>Block size of the selected file in decimal.</td>
173  </tr>
174  <tr>
175<td><B>Attributes</B></td>
176<td>File attribute of the selected file (<SUP>*</SUP>see below for details)</td>
177  </tr>
178  <tr>
179<td><B>Messages</B></td>
180<td>Error or warning message (<SUP>*</SUP>see below for details).</td>
181  </tr>
182  <tr>
183<td><b>
184EXIGetTypeString
185</b></td>
186<td>Returned string from the <CODE>EXIGetTypeString</CODE> function.</td>
187  </tr>
188  <tr>
189<td><b>EXIGetType</b></td>
190<td>Returned value from the <CODE>EXIGetType</CODE> function in hexadecimal.</td>
191  </tr>
192  <tr>
193<td><B>Slot</B></td>
194<td>Selected slot.</td>
195  </tr>
196  <tr>
197<td><B>Status</B></td>
198<td>Status of the Memory Card.</td>
199  </tr>
200
201</table>
202<p><SUP>*</SUP>File attribute is 8 bits and comprises the following: <br>bit 1 = system reserved <br>bit 2 = system reserved <br><b>bit 3 = PUBLIC attribute (1: Public, 0: Not Public) <br>bit 4 = COPY attribute (1: No Copy, 0: Copy enable) <br>bit 5 = MOVE attribute (1: No Move, 0: Move enable) <br>bit 6 = GLOBAL attribute (1: Global, 0: Not Global)</b><br>bit 7 = system reserved <br>bit 8 = system reserved <br> default setting of the file attribute is:
203</p>
204<p>If the system reserved bit(s) of the file attribute is set, the error message is displayed.<br>If <b>GLOBAL</b> attribute (formerly a system reserved bit) is set, it will also display the error message, and it will not display <i><b>GAME</b></i> and <i><b>CP</b></i>. Both <i><b><code>gameName</code></b></i>(<i><b>GAME</b></i>) and <code><i><b>company</b></i></code>(<i><b>CP</b></i>) are zero.<br>If the <b>PUBLIC</b> attribute of the file is disabled, the error message will be displayed.<br>If the <b>NO_COPY</b> or <b>NO_MOVE</b> attribute of the file is set, the warning message will be displayed.</p>
205<H3>IPL Menu Screen (Reset)</H3>
206<P>Move to the IPL menu screen (Hot Reset).</P>
207<H2>Status Information</H2>
208<TABLE border="1">
209  <TBODY>
210    <TR>
211<TD><B>Option</B></TD>
212<TD>Description</TD>
213    </TR>
214    <TR>
215<TD><B>MSG</B></TD>
216<TD>Debug messages.</TD>
217    </TR>
218    <TR>
219<TD><B>Slot</B></TD>
220<TD>Selected slot.</TD>
221    </TR>
222    <TR>
223<TD><B>Encoding</B></TD>
224<TD>Memory Card encoding (ANSI or SJIS).</TD>
225    </TR>
226    <TR>
227<TD><B>Sector Size</B></TD>
228<TD>Memory Card sector size in Bytes.</TD>
229    </TR>
230    <TR>
231<TD><B>Memory Size</B></TD>
232<TD>Memory Card size in Mb.</TD>
233    </TR>
234    <TR>
235<TD><B>Free Files</B></TD>
236<TD>Number of unused files.</TD>
237    </TR>
238    <TR>
239<TD><B>Free Blocks</B></TD>
240<TD>Number of unused blocks.</TD>
241    </TR>
242    <TR>
243<TD><B>Serial #</B></TD>
244<TD>Memory Card serial number (assigned at the time of format).</TD>
245    </TR>
246    <TR>
247<TD><B>Status</B></TD>
248<TD>Card status.</TD>
249    </TR>
250  </TBODY>
251</TABLE>
252<H2>Location</H2>
253<P><CODE>$REVOLUTION_SDK_ROOT/RVL/bin/tools/cardedit.elf</CODE></P>
254<H2>Revision History</H2>
255<P>03/01/2006 Initial version.</p>
256
257</BODY>
258</HTML>