Update autosaving.c to include @recomp_event comments

This commit is contained in:
LT_SCHMIDDY 2025-06-18 19:59:12 -04:00 committed by GitHub
parent 7e4c863c63
commit 9cf7472c15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,7 +74,7 @@ RECOMP_DECLARE_EVENT(recomp_on_autosave(PlayState* play));
RECOMP_DECLARE_EVENT(recomp_after_autosave(PlayState* play));
RECOMP_EXPORT void recomp_do_autosave(PlayState* play) {
// @recomp_event recomp_on_autosave(PlayState* play): Autosave triggered.
recomp_on_autosave(play);
// Transfer the scene flags into the cycle flags.
Play_SaveCycleSceneFlags(&play->state);
@ -102,7 +102,8 @@ RECOMP_EXPORT void recomp_do_autosave(PlayState* play) {
Sram_SyncWriteToFlash(sramCtx, gFlashOwlSaveStartPages[fileNum * 2 + 1], gFlashOwlSaveNumPages[fileNum * 2 + 1]);
gSaveContext.save.isOwlSave = false;
// @recomp_event recomp_on_autosave(PlayState* play): Autosave finished.
recomp_after_autosave(play);
}