From fa027d9c2a4e780f18b4523c54a2ca6c9ac5d89b Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 20 May 2020 02:26:23 +1000 Subject: [PATCH] SDL: Add remove disc menu option --- src/duckstation-sdl/sdl_host_interface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/duckstation-sdl/sdl_host_interface.cpp b/src/duckstation-sdl/sdl_host_interface.cpp index d06bd6ddc..7a6053b73 100644 --- a/src/duckstation-sdl/sdl_host_interface.cpp +++ b/src/duckstation-sdl/sdl_host_interface.cpp @@ -599,6 +599,12 @@ void SDLHostInterface::DrawMainMenuBar() ClearImGuiFocus(); } + if (ImGui::MenuItem("Remove Disc", nullptr, false, system_enabled)) + { + RunLater([this]() { m_system->RemoveMedia(); }); + ClearImGuiFocus(); + } + if (ImGui::MenuItem("Frame Step", nullptr, false, system_enabled)) { RunLater([this]() { DoFrameStep(); });