Exclude debug file and cutscene map from auto save (#5088)

* Exclude debug file and cutscene map from auto save

* Remove ganon's lair from auto save exclusion
This commit is contained in:
Archez 2025-02-25 03:13:31 -05:00 committed by GitHub
parent f023a46a5d
commit 5fcdf74f5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,11 +24,11 @@ typedef enum {
bool Autosave_CanSave() {
// Don't save when in title screen
// Don't save when in title screen or debug file
// Don't save the first 60 frames to not save the magic meter when it's still in the animation of filling it.
// Don't save in Ganon's fight and chamber of sages because of master sword and remember save location issues.
if (!GameInteractor::IsSaveLoaded(true) || gPlayState->gameplayFrames < 60 ||
gPlayState->sceneNum == SCENE_GANON_BOSS || gPlayState->sceneNum == SCENE_CHAMBER_OF_THE_SAGES) {
// Don't save in Chamber of Sages and the Cutscene map because of remember save location and cutscene item gives.
if (!GameInteractor::IsSaveLoaded(false) || gPlayState->gameplayFrames < 60 ||
gPlayState->sceneNum == SCENE_CHAMBER_OF_THE_SAGES || gPlayState->sceneNum == SCENE_CUTSCENE_MAP) {
return false;
}