remove taking settings from a loaded spoiler instead of the imGUI settings (#4812)

This commit is contained in:
Pepper0ni 2025-01-05 18:09:04 +00:00 committed by GitHub
parent 537a57c361
commit 700c1a808d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1873,10 +1873,12 @@ void GenerateRandomizerImgui(std::string seed = "") {
CVarSetInteger(CVAR_GENERAL("RandoGenerating"), 1); CVarSetInteger(CVAR_GENERAL("RandoGenerating"), 1);
CVarSave(); CVarSave();
auto ctx = Rando::Context::GetInstance(); auto ctx = Rando::Context::GetInstance();
/*RANDOTODO proper UI for selecting if a spoiler loaded should be used for settings
if (!ctx->IsSpoilerLoaded()) { if (!ctx->IsSpoilerLoaded()) {
// We use the settings from the spoiler rather than CVars. // We use the settings from the spoiler rather than CVars.
ctx->GetSettings()->SetAllFromCVar(); ctx->GetSettings()->SetAllFromCVar();
} }*/
// todo: this efficently when we build out cvar array support // todo: this efficently when we build out cvar array support
std::set<RandomizerCheck> excludedLocations; std::set<RandomizerCheck> excludedLocations;
std::stringstream excludedLocationStringStream(CVarGetString(CVAR_RANDOMIZER_SETTING("ExcludedLocations"), "")); std::stringstream excludedLocationStringStream(CVarGetString(CVAR_RANDOMIZER_SETTING("ExcludedLocations"), ""));