From 6d76ce9f5e60b2e90ceba4b52693214db67e7917 Mon Sep 17 00:00:00 2001 From: Archez Date: Wed, 13 Nov 2024 20:13:54 -0500 Subject: Fix crashing with modern menu and UIWidgets with no tooltips (#851) * Fix crashing with modern menu and UIWidgets when null is passed for tooltips * move to shiputils --- mm/2s2h/DeveloperTools/SaveEditor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mm/2s2h/DeveloperTools/SaveEditor.cpp') diff --git a/mm/2s2h/DeveloperTools/SaveEditor.cpp b/mm/2s2h/DeveloperTools/SaveEditor.cpp index 40e0a0062..acd9aa9a7 100644 --- a/mm/2s2h/DeveloperTools/SaveEditor.cpp +++ b/mm/2s2h/DeveloperTools/SaveEditor.cpp @@ -559,13 +559,15 @@ void DrawGeneralTab() { if (ImGui::SliderInt("##setBank", &bankedRupees, 0, 5000, "Banked Rupees: %d")) { HS_SET_BANK_RUPEES(bankedRupees); } - UIWidgets::Tooltip("To recieve the rewards, set the bank to 199, 999, or 4,999 then deposit a single rupee"); + UIWidgets::Tooltip("To receive the rewards, set the bank to 199, 999, or 4,999 then deposit a single rupee"); UIWidgets::PopStyleSlider(); DrawTempleClears(); UIWidgets::Checkbox("Has Tatl", (bool*)&gSaveContext.save.hasTatl, { .color = UIWidgets::Colors::Gray }); UIWidgets::Checkbox("Is Owl Save", (bool*)&gSaveContext.save.isOwlSave, { .color = UIWidgets::Colors::Gray }); + UIWidgets::Checkbox("Finished Intro Sequence", (bool*)&gSaveContext.save.isFirstCycle, + { .color = UIWidgets::Colors::Gray }); ImGui::EndGroup(); ImGui::PopItemWidth(); -- cgit v1.2.3