From 1e55c1295f1ed243f647e0a5234ebca4cbc29ea3 Mon Sep 17 00:00:00 2001 From: nclok1405 <155463060+nclok1405@users.noreply.github.com> Date: Sat, 3 Jan 2026 22:48:58 +0900 Subject: [PATCH] Add an option to disable Autosave Notification (#6081) --- soh/soh/Enhancements/QoL/Autosave.cpp | 8 +++++--- soh/soh/SohGui/SohMenuEnhancements.cpp | 6 ++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/soh/soh/Enhancements/QoL/Autosave.cpp b/soh/soh/Enhancements/QoL/Autosave.cpp index 49ab2996d..8cd5e6f80 100644 --- a/soh/soh/Enhancements/QoL/Autosave.cpp +++ b/soh/soh/Enhancements/QoL/Autosave.cpp @@ -44,9 +44,11 @@ static void Autosave_PerformSave() { Play_PerformSave(gPlayState); // Send notification - Notification::Emit({ - .message = "Game autosaved", - }); + if (CVarGetInteger(CVAR_ENHANCEMENT("AutosaveNotification"), 1)) { + Notification::Emit({ + .message = "Game autosaved", + }); + } } static void Autosave_IntervalSave() { diff --git a/soh/soh/SohGui/SohMenuEnhancements.cpp b/soh/soh/SohGui/SohMenuEnhancements.cpp index d6557cb47..1136a656c 100644 --- a/soh/soh/SohGui/SohMenuEnhancements.cpp +++ b/soh/soh/SohGui/SohMenuEnhancements.cpp @@ -160,6 +160,12 @@ void SohMenu::AddMenuEnhancements() { "autosave will wait if the game is paused in any way (dialogue, pause screen up, cutscenes, " "etc.).\n\n" "The soft-reset save will *not* trigger in cutscene maps like the Chamber of Sages!")); + AddWidget(path, "Notification on Autosave", WIDGET_CVAR_CHECKBOX) + .CVar(CVAR_ENHANCEMENT("AutosaveNotification")) + .PreFunc([](WidgetInfo& info) { info.isHidden = !CVarGetInteger(CVAR_ENHANCEMENT("Autosave"), 0); }) + .RaceDisable(false) + .Options(CheckboxOptions().DefaultValue(true).Tooltip("Show a notification when the game is autosaved.")); + AddWidget(path, "Remember Save Location", WIDGET_CVAR_CHECKBOX) .CVar(CVAR_ENHANCEMENT("RememberSaveLocation")) .Options(CheckboxOptions().Tooltip(