|
Digimon World 3 decomp
The European version, SLES_039.36
|
Go to the source code of this file.
Functions | |
| void | initMemCard (void) |
| Starts libmcrd and sets up MEMCARD: the save file name and the section sizes. | |
| void | setSaveFileName (void) |
| void | setSaveHeader (char *title, CardClut *clut, s32 count, void **icons) |
| The save file header: title (Shift-JIS), icon CLUT and 1-3 icon frames. | |
| s32 | syncMemCard (void) |
| MemCardSync, retrying a failed command up to maxRetries times. | |
| s32 | checkMemCard (s32 port) |
Checks whether a card is in port port (MemCardExist) | |
| s32 | acceptMemCard (s32 port) |
Checks a card in port port in full, finding out whether it is new or unformatted (MemCardAccept) | |
| s32 | readSave (s32 port, void *buf, s32 size, s32 section) |
| Reads a section of the save (SAVE_SECTION_*, then 2-4 for the data), a sector a call. | |
| s32 | writeSave (s32 port, void *buf, s32 size, s32 section) |
| Writes a section (as readSave; section 0 takes the offset from bits 8 and up) | |
| s32 | memCardCommand (s32 port, s32 cmd) |
| Reads the directory, creates the save file, formats or unformats (MEMCARD_OP_*) | |
| s32 | listSaves (s32 port) |
| Reads the card's directory into MEMCARD.files. | |
| s32 | createSave (s32 port) |
| Creates the save file on the card. | |
| s32 | formatMemCard (s32 port) |
| Formats an unformatted card. | |
| s32 | unformatMemCard (void) |
| memCardCommand's MEMCARD_OP_UNFORMAT, left out: always fails as if there were no card | |
| s32 | verifyChecksum (void *data, s32 size, char expected) |
| XOR of every byte. | |
| u8 | computeChecksum (void *data, s32 size) |
| The XOR of every byte, which verifyChecksum checks. | |
Variables | |
| const char | SAVE_FILE_NAME_JP [24] = "BISLPS-03446DMW3-JPN" |
| const char | SAVE_FILE_NAMES [2][24] |
| MemCard | MEMCARD = { 0 } |
| MemCardFuncs | MEMCARD_FUNCS |
| s32 | MEMCARD_SYNC_CMDS [MEMCARD_OP_UNFORMAT+1] = { 7, 8, 9, 10 } |
| The commands of memCardCommand's operations. | |
| void initMemCard | ( | void | ) |
| void setSaveFileName | ( | void | ) |
Definition at line 57 of file memcard.c.
Referenced by initMemCard().
| s32 syncMemCard | ( | void | ) |
MemCardSync, retrying a failed command up to maxRetries times.
Definition at line 105 of file memcard.c.
Referenced by acceptMemCard(), checkMemCard(), readSave(), and writeSave().
Checks whether a card is in port port (MemCardExist)
Definition at line 128 of file memcard.c.
Referenced by readSave(), and writeSave().
Checks a card in port port in full, finding out whether it is new or unformatted (MemCardAccept)
Definition at line 160 of file memcard.c.
Referenced by memCardCommand().
Reads the directory, creates the save file, formats or unformats (MEMCARD_OP_*)
Definition at line 351 of file memcard.c.
Referenced by createSave(), formatMemCard(), and listSaves().
| s32 unformatMemCard | ( | void | ) |
| const char SAVE_FILE_NAME_JP[24] = "BISLPS-03446DMW3-JPN" |
Definition at line 46 of file memcard.c.
Referenced by setSaveFileName().
| const char SAVE_FILE_NAMES[2][24] |
Definition at line 48 of file memcard.c.
Referenced by setSaveFileName().
| MemCard MEMCARD = { 0 } |
Definition at line 466 of file memcard.c.
Referenced by acceptMemCard(), checkMemCard(), initMemCard(), memCardCommand(), readSave(), setSaveFileName(), setSaveHeader(), STGMCARD_askError(), STGMCARD_writeHeader(), STGMCARD_writeIcons(), syncMemCard(), and writeSave().
| MemCardFuncs MEMCARD_FUNCS |
Definition at line 468 of file memcard.c.
Referenced by main(), SHOCKTST_updateEditor(), STAGSLCT_updateStageSelect(), STDWTITL_leaveTitle(), and STGMCARD_loadFiles().
| s32 MEMCARD_SYNC_CMDS[MEMCARD_OP_UNFORMAT+1] = { 7, 8, 9, 10 } |
The commands of memCardCommand's operations.
the MemCardSync command of each MEMCARD_OP_*
Definition at line 474 of file memcard.c.
Referenced by memCardCommand().