summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornclok1405 <155463060+nclok1405@users.noreply.github.com>2026-01-03 22:48:58 +0900
committerGitHub <noreply@github.com>2026-01-03 13:48:58 +0000
commit1e55c1295f1ed243f647e0a5234ebca4cbc29ea3 (patch)
tree48620ae35e77cf2c656aec7f788efcb3d7ac4139
parent6953edecee6e632e98bc48254093dfd782e3ec34 (diff)
Add an option to disable Autosave Notification (#6081)
-rw-r--r--soh/soh/Enhancements/QoL/Autosave.cpp8
-rw-r--r--soh/soh/SohGui/SohMenuEnhancements.cpp6
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(