mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Add an option to eject the disc
This commit is contained in:
@ -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() ||
|
||||
|
Reference in New Issue
Block a user