From 20d6f56644ced787b91a02e2f50ae4cc83a0efb9 Mon Sep 17 00:00:00 2001 From: Reonu Date: Fri, 3 May 2024 17:57:49 +0100 Subject: [PATCH] Fix saves getting deleted on SoT save (#16) --- patches/autosaving.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patches/autosaving.c b/patches/autosaving.c index 6e6d80d..a31db74 100644 --- a/patches/autosaving.c +++ b/patches/autosaving.c @@ -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.