From 5bb93cf2ef16519accf0aa3373e7578740e73163 Mon Sep 17 00:00:00 2001 From: LittleCube Date: Tue, 29 Apr 2025 18:22:25 -0400 Subject: [PATCH] fix 0th day wooo --- patches/save_patches.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/save_patches.c b/patches/save_patches.c index 5eeba3a..895c754 100644 --- a/patches/save_patches.c +++ b/patches/save_patches.c @@ -23,8 +23,8 @@ RECOMP_PATCH void Sram_UpdateWriteToFlashDefault(SramContext* sramCtx) { sramCtx->status = 4; } } - } else if (sramCtx->status == 4) { - // @recomp Patched to check status instead of using a hardcoded wait. + } else if (OSTIME_TO_TIMER(osGetTime() - sramCtx->startWriteOsTime) >= SECONDS_TO_TIMER_PRECISE(0, 25)) { + // @recomp Patched to wait a much shorter amount of time. sramCtx->status = 0; } } @@ -49,8 +49,8 @@ RECOMP_PATCH void Sram_UpdateWriteToFlashOwlSave(SramContext* sramCtx) { sramCtx->status = 4; } } - } else if (sramCtx->status == 4) { - // @recomp Patched to check status instead of using a hardcoded wait. + } else if (OSTIME_TO_TIMER(osGetTime() - sramCtx->startWriteOsTime) >= SECONDS_TO_TIMER_PRECISE(0, 25)) { + // @recomp Patched to wait a much shorter amount of time. sramCtx->status = 0; bzero(sramCtx->saveBuf, SAVE_BUFFER_SIZE); gSaveContext.save.isOwlSave = false;