From a0fda39a75a4c628e2a19249bb7e736d540acf72 Mon Sep 17 00:00:00 2001 From: Pepper0ni <93387759+Pepper0ni@users.noreply.github.com> Date: Thu, 11 Jul 2024 15:38:52 +0100 Subject: [PATCH] Force Warp Song Hints off when Warp Songs are not shuffled (#4229) --- soh/soh/Enhancements/randomizer/settings.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/soh/soh/Enhancements/randomizer/settings.cpp b/soh/soh/Enhancements/randomizer/settings.cpp index cbaf774f0..0d702e480 100644 --- a/soh/soh/Enhancements/randomizer/settings.cpp +++ b/soh/soh/Enhancements/randomizer/settings.cpp @@ -1739,6 +1739,12 @@ void Settings::UpdateOptionProperties() { mOptions[RSK_HINT_DISTRIBUTION].Unhide(); } + if (CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleWarpSongs"), RO_GENERIC_ON)) { + mOptions[RSK_WARP_SONG_HINTS].Enable(); + } else { + mOptions[RSK_WARP_SONG_HINTS].Disable("This option is disabled since warp song locations not shuffled."); + } + if (CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleCows"), RO_GENERIC_OFF)) { mOptions[RSK_MALON_HINT].Enable(); } else { @@ -2039,6 +2045,10 @@ void Settings::FinalizeSettings(const std::set& excludedLocatio mOptions[RSK_KEYSANITY].SetSelectedIndex(3); } + if (!mOptions[RSK_SHUFFLE_WARP_SONGS]) { + mOptions[RSK_WARP_SONG_HINTS].SetSelectedIndex(RO_GENERIC_OFF); + } + if (!mOptions[RSK_SHUFFLE_COWS]) { mOptions[RSK_MALON_HINT].SetSelectedIndex(RO_GENERIC_OFF); }