From 05a7f728e736836b3b6d799487c4c922ff789581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Tue, 1 Jul 2025 17:30:02 +0000 Subject: [PATCH] dev tools save editor: change dungeon drop down to current dungeon (#5635) --- soh/soh/Enhancements/debugger/debugSaveEditor.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/soh/soh/Enhancements/debugger/debugSaveEditor.cpp b/soh/soh/Enhancements/debugger/debugSaveEditor.cpp index 547d1907a..7b514a16c 100644 --- a/soh/soh/Enhancements/debugger/debugSaveEditor.cpp +++ b/soh/soh/Enhancements/debugger/debugSaveEditor.cpp @@ -1305,6 +1305,15 @@ void DrawQuestStatusTab() { ImGui::Text("Dungeon Items"); static int32_t dungeonItemsScene = SCENE_DEKU_TREE; + static int32_t lastDungeonScene = -1; + if (gPlayState != nullptr) { + int32_t sceneNum = gPlayState->sceneNum; + if (sceneNum >= SCENE_DEKU_TREE && sceneNum <= SCENE_JABU_JABU_BOSS && lastDungeonScene != sceneNum) { + dungeonItemsScene = sceneNum; + lastDungeonScene = sceneNum; + } + } + PushStyleCombobox(THEME_COLOR); if (ImGui::BeginCombo("##DungeonSelect", SohUtils::GetSceneName(dungeonItemsScene).c_str())) { for (int32_t dungeonIndex = SCENE_DEKU_TREE; dungeonIndex < SCENE_JABU_JABU_BOSS + 1; dungeonIndex++) {