Go to the source code of this file.
Data Structures | |
struct | SaveInfo |
Macros | |
#define | GLOBALS_PAGE_1 6 |
#define | GLOBALS_PAGE_2 7 |
Functions | |
b32 | fio_read_flash (s32 pageNum, void *readBuffer, u32 numBytes) |
b32 | fio_write_flash (s32 pageNum, s8 *readBuffer, u32 numBytes) |
void | fio_erase_flash (s32 pageNum) |
s32 | get_spirits_rescued (void) |
s32 | fio_calc_globals_checksum (void) |
b32 | fio_validate_globals_checksums (void) |
b32 | fio_load_globals (void) |
b32 | fio_save_globals (void) |
s32 | fio_calc_file_checksum (SaveData *saveData) |
b32 | fio_validate_file_checksum (SaveData *saveData) |
b32 | fio_fetch_saved_file_info (void) |
b32 | fio_load_game (s32 saveSlot) |
void | fio_save_game (s32 saveSlot) |
void | fio_erase_game (s32 saveSlot) |
void | fio_init_flash (void) |
Variables | |
BSS SaveData | FetchSaveBuffer |
BSS SaveInfo | LogicalSaveInfo [4] |
BSS SaveInfo | PhysicalSaveInfo [6] |
BSS s32 | NextAvailablePhysicalSave |
SaveGlobals | gSaveGlobals |
SaveData | gCurrentSaveFile |
char | MagicSaveString [] = "Mario Story 006" |
#define GLOBALS_PAGE_1 6 |
Definition at line 12 of file fio.c.
Referenced by fio_load_globals(), and fio_save_globals().
#define GLOBALS_PAGE_2 7 |
Definition at line 13 of file fio.c.
Referenced by fio_load_globals(), and fio_save_globals().
b32 fio_read_flash | ( | s32 | pageNum, |
void * | readBuffer, | ||
u32 | numBytes ) |
Definition at line 236 of file fio.c.
Referenced by fio_fetch_saved_file_info(), fio_load_game(), and fio_load_globals().
b32 fio_write_flash | ( | s32 | pageNum, |
s8 * | readBuffer, | ||
u32 | numBytes ) |
Definition at line 264 of file fio.c.
Referenced by fio_save_game(), and fio_save_globals().
void fio_erase_flash | ( | s32 | pageNum | ) |
Definition at line 292 of file fio.c.
Referenced by fio_erase_game(), fio_save_game(), and fio_save_globals().
s32 get_spirits_rescued | ( | void | ) |
Definition at line 29 of file fio.c.
Referenced by fio_save_game().
s32 fio_calc_globals_checksum | ( | void | ) |
Definition at line 52 of file fio.c.
Referenced by fio_save_globals(), and fio_validate_globals_checksums().
b32 fio_validate_globals_checksums | ( | void | ) |
Definition at line 63 of file fio.c.
Referenced by fio_load_globals().
b32 fio_load_globals | ( | void | ) |
Definition at line 75 of file fio.c.
Referenced by filemenu_init(), and state_step_startup().
b32 fio_save_globals | ( | void | ) |
Definition at line 90 of file fio.c.
Referenced by filemenu_yesno_handle_input().
s32 fio_calc_file_checksum | ( | SaveData * | saveData | ) |
Definition at line 106 of file fio.c.
Referenced by fio_save_game(), and fio_validate_file_checksum().
Definition at line 117 of file fio.c.
Referenced by fio_fetch_saved_file_info().
b32 fio_fetch_saved_file_info | ( | void | ) |
Definition at line 124 of file fio.c.
Referenced by fio_erase_game(), fio_load_game(), and fio_save_game().
b32 fio_load_game | ( | s32 | saveSlot | ) |
Definition at line 167 of file fio.c.
Referenced by filemenu_init(), filemenu_main_handle_input(), filemenu_yesno_handle_input(), and state_step_startup().
void fio_save_game | ( | s32 | saveSlot | ) |
Definition at line 184 of file fio.c.
Referenced by entity_SaveBlock_save_data(), filemenu_main_handle_input(), and filemenu_yesno_handle_input().
void fio_erase_game | ( | s32 | saveSlot | ) |
Definition at line 220 of file fio.c.
Referenced by filemenu_yesno_handle_input().
void fio_init_flash | ( | void | ) |
Definition at line 232 of file fio.c.
Referenced by load_engine_data().
Definition at line 15 of file fio.c.
Referenced by fio_fetch_saved_file_info().
Definition at line 16 of file fio.c.
Referenced by fio_fetch_saved_file_info(), and fio_load_game().
Definition at line 17 of file fio.c.
Referenced by fio_erase_game(), and fio_fetch_saved_file_info().
BSS s32 NextAvailablePhysicalSave |
Definition at line 18 of file fio.c.
Referenced by fio_fetch_saved_file_info(), and fio_save_game().
SaveGlobals gSaveGlobals |
Definition at line 20 of file fio.c.
Referenced by filemenu_init(), filemenu_yesno_handle_input(), fio_calc_globals_checksum(), fio_load_globals(), fio_save_globals(), fio_validate_globals_checksums(), and state_step_startup().
SaveData gCurrentSaveFile |
Definition at line 21 of file fio.c.
Referenced by clear_area_flag(), clear_area_flags(), clear_global_flag(), clear_saved_variables(), filemenu_init(), fio_deserialize_state(), fio_load_game(), fio_save_game(), fio_serialize_state(), get_area_byte(), get_area_flag(), get_global_byte(), get_global_flag(), get_global_short(), get_global_word(), set_area_byte(), set_area_flag(), set_global_byte(), set_global_flag(), set_global_short(), set_global_word(), and ver_deserialize_standard().
char MagicSaveString[] = "Mario Story 006" |
Definition at line 23 of file fio.c.
Referenced by fio_load_game(), fio_save_game(), fio_save_globals(), fio_validate_file_checksum(), and fio_validate_globals_checksums().