diff options
| author | Philip Dubé <159546+serprex@users.noreply.github.com> | 2026-04-23 22:48:12 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-23 22:48:12 +0000 |
| commit | ccfa31a245f0dabb1edf626e8e8b677f032d2025 (patch) | |
| tree | 348f3b1699174f6493e1a2ad1f768b849391c0fb | |
| parent | 806398a65b04c994d6472eb482e0de400d48cc72 (diff) | |
Fix drag&drop not updating excluded locations (#6559)
| -rw-r--r-- | soh/soh/OTRGlobals.cpp | 1 | ||||
| -rw-r--r-- | soh/soh/SohGui/SohMenu.h | 1 | ||||
| -rw-r--r-- | soh/soh/SohGui/SohMenuRandomizer.cpp | 5 |
3 files changed, 7 insertions, 0 deletions
diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index 39f04ddbb..b5227b411 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 5b0b07827..c50c43674 100644 --- a/soh/soh/SohGui/SohMenu.h +++ b/soh/soh/SohGui/SohMenu.h @@ -28,6 +28,7 @@ static std::map<int32_t, const char*> 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 b5b9ece98..5647e3591 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 |
