From 700c1a808db71550f99d87d25ca37e89ca812171 Mon Sep 17 00:00:00 2001 From: Pepper0ni <93387759+Pepper0ni@users.noreply.github.com> Date: Sun, 5 Jan 2025 18:09:04 +0000 Subject: [PATCH] remove taking settings from a loaded spoiler instead of the imGUI settings (#4812) --- soh/soh/Enhancements/randomizer/randomizer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/soh/soh/Enhancements/randomizer/randomizer.cpp b/soh/soh/Enhancements/randomizer/randomizer.cpp index 024424a99..dcf928f81 100644 --- a/soh/soh/Enhancements/randomizer/randomizer.cpp +++ b/soh/soh/Enhancements/randomizer/randomizer.cpp @@ -1873,10 +1873,12 @@ void GenerateRandomizerImgui(std::string seed = "") { CVarSetInteger(CVAR_GENERAL("RandoGenerating"), 1); CVarSave(); auto ctx = Rando::Context::GetInstance(); + /*RANDOTODO proper UI for selecting if a spoiler loaded should be used for settings if (!ctx->IsSpoilerLoaded()) { // We use the settings from the spoiler rather than CVars. ctx->GetSettings()->SetAllFromCVar(); - } + }*/ + // todo: this efficently when we build out cvar array support std::set excludedLocations; std::stringstream excludedLocationStringStream(CVarGetString(CVAR_RANDOMIZER_SETTING("ExcludedLocations"), ""));