Document src/save.c

This commit is contained in:
cbt6
2022-08-05 14:18:53 +08:00
parent 49ea462d7f
commit 686c8383e5
15 changed files with 449 additions and 455 deletions
+2 -2
View File
@@ -429,7 +429,7 @@ static void Task_Hof_InitTeamSaveData(u8 taskId)
}
else
{
if (Save_LoadGameData(SAVE_HALL_OF_FAME) != TRUE)
if (LoadGameSave(SAVE_HALL_OF_FAME) != SAVE_STATUS_OK)
memset(gDecompressionBuffer, 0, 0x2000);
}
@@ -759,7 +759,7 @@ static void Task_HofPC_CopySaveData(u8 taskId)
struct HallofFameTeam* savedTeams;
CreateTopBarWindowLoadPalette(0, 30, 0, 0x0C, 0x226);
if (Save_LoadGameData(SAVE_HALL_OF_FAME) != SAVE_STATUS_OK)
if (LoadGameSave(SAVE_HALL_OF_FAME) != SAVE_STATUS_OK)
{
gTasks[taskId].func = Task_HofPC_PrintDataIsCorrupted;
}