mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-11-25 14:16:58 +01:00
Fix saves getting deleted on SoT save (#16)
This commit is contained in:
parent
6aaf0bbd71
commit
20d6f56644
@ -21,6 +21,8 @@ void do_autosave(SramContext* sramCtx) {
|
||||
// Synchronously save into the owl save slot and the backup owl save slot.
|
||||
Sram_SyncWriteToFlash(sramCtx, gFlashOwlSaveStartPages[fileNum * 2], gFlashOwlSaveNumPages[fileNum * 2]);
|
||||
Sram_SyncWriteToFlash(sramCtx, gFlashOwlSaveStartPages[fileNum * 2 + 1], gFlashOwlSaveNumPages[fileNum * 2 + 1]);
|
||||
|
||||
gSaveContext.save.isOwlSave = false;
|
||||
}
|
||||
|
||||
// @recomp Do not clear the save if the save was an autosave.
|
||||
|
Loading…
Reference in New Issue
Block a user