diff --git a/mm/2s2h/DeveloperTools/SaveEditor.cpp b/mm/2s2h/DeveloperTools/SaveEditor.cpp index b3f9ffda8..d1fd5f614 100644 --- a/mm/2s2h/DeveloperTools/SaveEditor.cpp +++ b/mm/2s2h/DeveloperTools/SaveEditor.cpp @@ -314,7 +314,26 @@ void DrawGeneralTab() { ); ImGui::Text("Banked Rupees: %d", HS_GET_BANK_RUPEES()); - UIWidgets::Checkbox("Snowhead Cleared", (bool*)&gSaveContext.save.snowheadCleared, { .color = UIWidgets::Colors::Gray }); + + // Temple clears + static const std::array, 4> templeClears = { { + { WEEKEVENTREG_CLEARED_WOODFALL_TEMPLE, "Woodfall Cleared" }, + { WEEKEVENTREG_CLEARED_SNOWHEAD_TEMPLE, "Snowhead Cleared" }, + { WEEKEVENTREG_CLEARED_GREAT_BAY_TEMPLE, "Great Bay Cleared" }, + { WEEKEVENTREG_CLEARED_STONE_TOWER_TEMPLE, "Stone Tower Cleared" }, + } }; + + for (const auto& temple : templeClears) { + bool cleared = CHECK_WEEKEVENTREG(temple.first); + if (UIWidgets::Checkbox(temple.second, &cleared, { .color = UIWidgets::Colors::Gray })) { + if (cleared) { + SET_WEEKEVENTREG(temple.first); + } else { + CLEAR_WEEKEVENTREG(temple.first); + } + } + } + UIWidgets::Checkbox("Has Tatl", (bool*)&gSaveContext.save.hasTatl, { .color = UIWidgets::Colors::Gray }); ImGui::EndGroup();