mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2025-10-30 08:03:03 +00:00
fix 0th day wooo
This commit is contained in:
parent
2d9dd10ddd
commit
5bb93cf2ef
1 changed files with 4 additions and 4 deletions
|
|
@ -23,8 +23,8 @@ RECOMP_PATCH void Sram_UpdateWriteToFlashDefault(SramContext* sramCtx) {
|
||||||
sramCtx->status = 4;
|
sramCtx->status = 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (sramCtx->status == 4) {
|
} else if (OSTIME_TO_TIMER(osGetTime() - sramCtx->startWriteOsTime) >= SECONDS_TO_TIMER_PRECISE(0, 25)) {
|
||||||
// @recomp Patched to check status instead of using a hardcoded wait.
|
// @recomp Patched to wait a much shorter amount of time.
|
||||||
sramCtx->status = 0;
|
sramCtx->status = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -49,8 +49,8 @@ RECOMP_PATCH void Sram_UpdateWriteToFlashOwlSave(SramContext* sramCtx) {
|
||||||
sramCtx->status = 4;
|
sramCtx->status = 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (sramCtx->status == 4) {
|
} else if (OSTIME_TO_TIMER(osGetTime() - sramCtx->startWriteOsTime) >= SECONDS_TO_TIMER_PRECISE(0, 25)) {
|
||||||
// @recomp Patched to check status instead of using a hardcoded wait.
|
// @recomp Patched to wait a much shorter amount of time.
|
||||||
sramCtx->status = 0;
|
sramCtx->status = 0;
|
||||||
bzero(sramCtx->saveBuf, SAVE_BUFFER_SIZE);
|
bzero(sramCtx->saveBuf, SAVE_BUFFER_SIZE);
|
||||||
gSaveContext.save.isOwlSave = false;
|
gSaveContext.save.isOwlSave = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue