papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
fio.c File Reference

Data Structures

struct  SaveInfo
 

Macros

#define GLOBALS_PAGE_1   6
 
#define GLOBALS_PAGE_2   7
 

Functions

void fio_deserialize_state (void)
 
void fio_serialize_state (void)
 
b32 fio_read_flash (s32 pageNum, void *readBuffer, u32 numBytes)
 
b32 fio_write_flash (s32 pageNum, s8 *readBuffer, u32 numBytes)
 
s32 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 func_8002B608 (void)
 
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"
 

Data Structure Documentation

◆ SaveInfo

struct SaveInfo
Data Fields
s32 count
s32 slot

Macro Definition Documentation

◆ GLOBALS_PAGE_1

#define GLOBALS_PAGE_1   6

◆ GLOBALS_PAGE_2

#define GLOBALS_PAGE_2   7

Function Documentation

◆ fio_calc_file_checksum()

s32 fio_calc_file_checksum ( SaveData * saveData)

◆ fio_calc_globals_checksum()

s32 fio_calc_globals_checksum ( void )

◆ fio_deserialize_state()

void fio_deserialize_state ( void )

Referenced by fio_load_game(), and load_map_by_IDs().

◆ fio_erase_flash()

s32 fio_erase_flash ( s32 pageNum)

◆ fio_erase_game()

void fio_erase_game ( s32 saveSlot)

◆ fio_fetch_saved_file_info()

b32 fio_fetch_saved_file_info ( void )

◆ fio_init_flash()

void fio_init_flash ( void )

Referenced by load_engine_data().

◆ fio_load_game()

b32 fio_load_game ( s32 saveSlot)

◆ fio_load_globals()

b32 fio_load_globals ( void )

◆ fio_read_flash()

b32 fio_read_flash ( s32 pageNum,
void * readBuffer,
u32 numBytes )

◆ fio_save_game()

◆ fio_save_globals()

b32 fio_save_globals ( void )

◆ fio_serialize_state()

void fio_serialize_state ( void )

Referenced by fio_save_game(), and func_8002B608().

◆ fio_validate_file_checksum()

b32 fio_validate_file_checksum ( SaveData * saveData)

◆ fio_validate_globals_checksums()

b32 fio_validate_globals_checksums ( void )

Referenced by fio_load_globals().

◆ fio_write_flash()

b32 fio_write_flash ( s32 pageNum,
s8 * readBuffer,
u32 numBytes )

Referenced by fio_save_game(), and fio_save_globals().

◆ func_8002B608()

void func_8002B608 ( void )

◆ get_spirits_rescued()

s32 get_spirits_rescued ( void )

Referenced by fio_serialize_state().

Variable Documentation

◆ FetchSaveBuffer

BSS SaveData FetchSaveBuffer

◆ gCurrentSaveFile

◆ gSaveGlobals

◆ LogicalSaveInfo

BSS SaveInfo LogicalSaveInfo[4]

◆ MagicSaveString

◆ NextAvailablePhysicalSave

BSS s32 NextAvailablePhysicalSave

◆ PhysicalSaveInfo

BSS SaveInfo PhysicalSaveInfo[6]