mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-27 05:43:51 +01:00
Add clarifying comment to LinkFullSave_WriteSector
This commit is contained in:
parent
8e424b6985
commit
8e8b70c15c
@ -278,6 +278,7 @@ static u8 HandleWriteIncrementalSector(u16 numSectors, const struct SaveSectorLo
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Exceeded max sector, finished
|
||||||
status = SAVE_STATUS_ERROR;
|
status = SAVE_STATUS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -793,6 +794,10 @@ bool8 LinkFullSave_WriteSector(void)
|
|||||||
u8 status = HandleWriteIncrementalSector(NUM_SECTORS_PER_SLOT, gRamSaveSectorLocations);
|
u8 status = HandleWriteIncrementalSector(NUM_SECTORS_PER_SLOT, gRamSaveSectorLocations);
|
||||||
if (gDamagedSaveSectors)
|
if (gDamagedSaveSectors)
|
||||||
DoSaveFailedScreen(SAVE_NORMAL);
|
DoSaveFailedScreen(SAVE_NORMAL);
|
||||||
|
|
||||||
|
// In this case "error" either means that an actual error was encountered
|
||||||
|
// or that the given max sector has been reached (meaning it has finished successfully).
|
||||||
|
// If there was an actual error the save failed screen above will also be shown.
|
||||||
if (status == SAVE_STATUS_ERROR)
|
if (status == SAVE_STATUS_ERROR)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user