|
4 | 4 |
|
5 | 5 | namespace gc::card {
|
6 | 6 |
|
7 |
| -#define CARD_SLOT_A 0 // Memory card slot A |
8 |
| -#define CARD_SLOT_B 1 // Memory card slot B |
| 7 | +#define CARD_SLOT_A 0 // Memory card slot A |
| 8 | +#define CARD_SLOT_B 1 // Memory card slot B |
9 | 9 |
|
10 |
| -#define CARD_FILENAME_MAX 32 // Maximum filename length, excluding null terminator |
| 10 | +#define CARD_FILENAME_MAX 32 // Maximum filename length, excluding null terminator |
11 | 11 | #define CARD_MAX_ICONS 8
|
12 | 12 |
|
13 |
| -#define CARD_RESULT_UNLOCKED 1 // Card is being unlocked or is already unlocked |
14 |
| -#define CARD_RESULT_READY 0 // Card is ready |
15 |
| -#define CARD_RESULT_BUSY -1 // Card is busy |
16 |
| -#define CARD_RESULT_WRONGDEVICE -2 // Wrong device connected in slot |
17 |
| -#define CARD_RESULT_NOCARD -3 // No memory card in slot |
18 |
| -#define CARD_RESULT_NOFILE -4 // Specified file not found |
19 |
| -#define CARD_RESULT_IOERROR -5 // Internal EXI I/O error |
20 |
| -#define CARD_RESULT_BROKEN -6 // Directory structure or file entry broken |
21 |
| -#define CARD_RESULT_EXIST -7 // File already exists with the specified parameters |
22 |
| -#define CARD_RESULT_NOENT -8 // Found no empty block to create the file |
23 |
| -#define CARD_RESULT_INSSPACE -9 // Not enough space to write the file to the memory card |
24 |
| -#define CARD_RESULT_NOPERM -10 // Not enough permissions to operate on the file |
25 |
| -#define CARD_RESULT_LIMIT -11 // Card size limit reached |
26 |
| -#define CARD_RESULT_NAMETOOLONG -12 // Filename too long |
27 |
| -#define CARD_RESULT_ENCODING -13 // Font encoding PAL/SJIS mismatch |
28 |
| -#define CARD_RESULT_CANCELED -14 // Card operation canceled |
29 |
| -#define CARD_RESULT_FATAL_ERROR -128 // Fatal error, non-recoverable |
| 13 | +#define CARD_RESULT_UNLOCKED 1 // Card is being unlocked or is already unlocked |
| 14 | +#define CARD_RESULT_READY 0 // Card is ready |
| 15 | +#define CARD_RESULT_BUSY -1 // Card is busy |
| 16 | +#define CARD_RESULT_WRONGDEVICE -2 // Wrong device connected in slot |
| 17 | +#define CARD_RESULT_NOCARD -3 // No memory card in slot |
| 18 | +#define CARD_RESULT_NOFILE -4 // Specified file not found |
| 19 | +#define CARD_RESULT_IOERROR -5 // Internal EXI I/O error |
| 20 | +#define CARD_RESULT_BROKEN -6 // Directory structure or file entry broken |
| 21 | +#define CARD_RESULT_EXIST -7 // File already exists with the specified parameters |
| 22 | +#define CARD_RESULT_NOENT -8 // Found no empty block to create the file |
| 23 | +#define CARD_RESULT_INSSPACE -9 // Not enough space to write the file to the memory card |
| 24 | +#define CARD_RESULT_NOPERM -10 // Not enough permissions to operate on the file |
| 25 | +#define CARD_RESULT_LIMIT -11 // Card size limit reached |
| 26 | +#define CARD_RESULT_NAMETOOLONG -12 // Filename too long |
| 27 | +#define CARD_RESULT_ENCODING -13 // Font encoding PAL/SJIS mismatch |
| 28 | +#define CARD_RESULT_CANCELED -14 // Card operation canceled |
| 29 | +#define CARD_RESULT_FATAL_ERROR -128 // Fatal error, non-recoverable |
30 | 30 |
|
31 | 31 | struct CARDFileInfo
|
32 | 32 | {
|
|
0 commit comments