SDL: Add remove disc menu option

This commit is contained in:
Connor McLaughlin 2020-05-20 02:26:23 +10:00
parent 340640821e
commit fa027d9c2a
1 changed files with 6 additions and 0 deletions

View File

@ -599,6 +599,12 @@ void SDLHostInterface::DrawMainMenuBar()
ClearImGuiFocus(); 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)) if (ImGui::MenuItem("Frame Step", nullptr, false, system_enabled))
{ {
RunLater([this]() { DoFrameStep(); }); RunLater([this]() { DoFrameStep(); });