mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2025-10-30 08:03:03 +00:00
Fix saves getting deleted on SoT save (#16)
This commit is contained in:
parent
6aaf0bbd71
commit
20d6f56644
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue