diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index 39f04ddbbd..b5227b4113 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -2536,6 +2536,7 @@ bool SoH_HandleConfigDrop(char* filePath) { ->ClearBindings(); Rando::Settings::GetInstance()->UpdateAllOptions(); + SohGui::MarkRandomizerMenusDirty(); gui->SaveConsoleVariablesNextFrame(); ShipInit::Init("*"); diff --git a/soh/soh/SohGui/SohMenu.h b/soh/soh/SohGui/SohMenu.h index 5b0b07827d..c50c436740 100644 --- a/soh/soh/SohGui/SohMenu.h +++ b/soh/soh/SohGui/SohMenu.h @@ -28,6 +28,7 @@ static std::map languages = { }; void UpdateMenuTricks(); void UpdateMenuLocations(); +void MarkRandomizerMenusDirty(); class SohMenu : public Ship::Menu { public: diff --git a/soh/soh/SohGui/SohMenuRandomizer.cpp b/soh/soh/SohGui/SohMenuRandomizer.cpp index b5b9ece986..5647e35910 100644 --- a/soh/soh/SohGui/SohMenuRandomizer.cpp +++ b/soh/soh/SohGui/SohMenuRandomizer.cpp @@ -181,6 +181,11 @@ void DrawLocationsMenu(WidgetInfo& info) { ImGui::EndDisabled(); } +void MarkRandomizerMenusDirty() { + locationsDirty = true; + tricksDirty = true; +} + void UpdateMenuLocations() { RandomizerCheckObjects::UpdateImGuiVisibility(); // todo: this efficiently when we build out cvar array support