Make owl saves not get deleted on load if autosaving is enabled, updated autosave description

This commit is contained in:
Mr-Wiseguy 2024-05-04 20:42:53 -04:00
parent 2a72fc25ca
commit 73eac7c88d
2 changed files with 5 additions and 4 deletions

View File

@ -179,9 +179,10 @@
<b>This setting does not affect keyboard input.</b>
</p>
<p data-if="cur_config_index == 5">
Enables or disables the autosave feature.
Turns on autosaving and prevents owl saves from being deleted on load. If an owl save exists when an autosave is made, the owl save will get replaced.
<br/>
<b>If any owl save exists when an autosave is made, the owl save will get replaced.</b>
<br/>
<b>If autosaving is disabled, existing autosaves will be deleted when loaded.</b>
</p>
</div>
</div>

View File

@ -88,8 +88,8 @@ void func_80147314(SramContext* sramCtx, s32 fileNum) {
s32 save_type = gSaveContext.save.isOwlSave;
gSaveContext.save.isOwlSave = false;
// @recomp Check if this owl save was actually an autosave and don't clear it if so.
if (save_type != SAVE_TYPE_AUTOSAVE) {
// @recomp Prevent owl save/autosave deletion if autosaving is enabled.
if (!recomp_autosave_enabled()) {
gSaveContext.save.saveInfo.playerData.newf[0] = '\0';
gSaveContext.save.saveInfo.playerData.newf[1] = '\0';
gSaveContext.save.saveInfo.playerData.newf[2] = '\0';