Fix saves getting deleted on SoT save (#16)

This commit is contained in:
Reonu 2024-05-03 17:57:49 +01:00 committed by GitHub
parent 6aaf0bbd71
commit 20d6f56644
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.