From 5db2856270e989696fe1ac67b8ee92f927c09c97 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Mon, 23 Aug 2021 14:16:52 +0200 Subject: [PATCH] missing changes from previous commit --- core/rend/gui.cpp | 7 +++++-- core/rend/gui.h | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/rend/gui.cpp b/core/rend/gui.cpp index 890a83333..4044aa017 100644 --- a/core/rend/gui.cpp +++ b/core/rend/gui.cpp @@ -419,8 +419,11 @@ void gui_open_settings() } } -static void gui_start_game(const std::string& path) +void gui_start_game(const std::string& path) { + dc_term_game(); + reset_vmus(); + scanner.stop(); gui_state = GuiState::Loading; static std::string path_copy; @@ -1144,7 +1147,7 @@ static void gui_display_settings() } ImGui::SameLine(); ShowHelpMarker("The directory containing BIOS files, as well as saved VMUs and states"); -#else +#elseif !defined(TARGET_IPHONE) if (ImGui::ListBoxHeader("Home Directory", 1)) { ImGui::AlignTextToFramePadding(); diff --git a/core/rend/gui.h b/core/rend/gui.h index c6b2139e6..0412e6ff7 100644 --- a/core/rend/gui.h +++ b/core/rend/gui.h @@ -37,6 +37,7 @@ void gui_set_mouse_button(int button, bool pressed); void gui_set_mouse_wheel(float delta); void gui_set_insets(int left, int right, int top, int bottom); void gui_stop_game(const std::string& message = ""); +void gui_start_game(const std::string& path); extern int screen_dpi; extern float scaling;