file_progress_e documentation
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
|
||||
#define ROUND_UP_DIVIDE(a, b) (((a) + (b) - 1) / (b))
|
||||
// The round up divide is not technically needed, but will come in handy for modding
|
||||
#define SAVEFILE_NUM_BLOCKS ROUND_UP_DIVIDE(sizeof(SaveFile),EEPROM_BLOCK_SIZE)
|
||||
#define gameFile_NUM_BLOCKS ROUND_UP_DIVIDE(sizeof(SaveFile),EEPROM_BLOCK_SIZE)
|
||||
|
||||
s32 write_file_blocks(s32 filenum, s32 blockOffset, u8 *buffer, s32 blockCount) {
|
||||
s32 address = (filenum * SAVEFILE_NUM_BLOCKS) + blockOffset;
|
||||
s32 address = (filenum * gameFile_NUM_BLOCKS) + blockOffset;
|
||||
s32 ret;
|
||||
|
||||
func_8024F35C(3);
|
||||
@@ -18,7 +18,7 @@ s32 write_file_blocks(s32 filenum, s32 blockOffset, u8 *buffer, s32 blockCount)
|
||||
}
|
||||
|
||||
s32 load_file_blocks(s32 filenum, s32 blockOffset, u8 *buffer, s32 blockCount) {
|
||||
s32 address = (filenum * SAVEFILE_NUM_BLOCKS) + blockOffset;
|
||||
s32 address = (filenum * gameFile_NUM_BLOCKS) + blockOffset;
|
||||
s32 ret;
|
||||
|
||||
func_8024F35C(3);
|
||||
|
@@ -49,7 +49,7 @@ void sns_update_global_save_data_checksum(void)
|
||||
* Running this multiple times seems to achieve nothing.
|
||||
* A debug leftover?
|
||||
*/
|
||||
for (i = 5; i != 0 && func_8033CD0C(&gSaveData); i--)
|
||||
for (i = 5; i != 0 && savedata_8033CE40(&gSaveData); i--)
|
||||
;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ void sns_save_and_update_global_data(void)
|
||||
* and validates the checksum.
|
||||
*/
|
||||
|
||||
if (func_8033CA9C(&gSaveData))
|
||||
if (savedata_8033CA9C(&gSaveData))
|
||||
{
|
||||
/**
|
||||
* Failed, hide the evidence.
|
||||
|
Reference in New Issue
Block a user