Add an option to eject the disc

This commit is contained in:
JosJuice
2017-09-17 11:35:26 +02:00
parent 3c770693a2
commit e4faabb763
9 changed files with 24 additions and 3 deletions

View File

@ -127,6 +127,7 @@ void CFrame::BindMenuBarEvents()
// File menu
Bind(wxEVT_MENU, &CFrame::OnOpen, this, wxID_OPEN);
Bind(wxEVT_MENU, &CFrame::OnChangeDisc, this, IDM_CHANGE_DISC);
Bind(wxEVT_MENU, &CFrame::OnEjectDisc, this, IDM_EJECT_DISC);
Bind(wxEVT_MENU, &CFrame::OnBootDrive, this, IDM_DRIVE1, IDM_DRIVE24);
Bind(wxEVT_MENU, &CFrame::OnRefresh, this, wxID_REFRESH);
Bind(wxEVT_MENU, &CFrame::OnQuit, this, wxID_EXIT);
@ -459,6 +460,11 @@ void CFrame::OnChangeDisc(wxCommandEvent& WXUNUSED(event))
DoOpen(false);
}
void CFrame::OnEjectDisc(wxCommandEvent& WXUNUSED(event))
{
Core::RunAsCPUThread(DVDInterface::EjectDisc);
}
void CFrame::OnRecord(wxCommandEvent& WXUNUSED(event))
{
if ((!Core::IsRunningAndStarted() && Core::IsRunning()) || Movie::IsRecordingInput() ||