disable boot from drive when emulator is running (issue 781)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2767 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman
2009-03-27 23:07:28 +00:00
parent 8628be39c7
commit bdabcd4bf5
4 changed files with 10 additions and 8 deletions

View File

@ -104,7 +104,7 @@ void CFrame::CreateMenu()
m_pMenuItemOpen = fileMenu->Append(wxID_OPEN, _T("&Open...\tCtrl+O"));
wxMenu *externalDrive = new wxMenu;
fileMenu->AppendSubMenu(externalDrive, _T("&Boot from DVD Drive..."));
m_pMenuItemOpenDrive = fileMenu->AppendSubMenu(externalDrive, _T("&Boot from DVD Drive..."));
drives = cdio_get_devices();
for (int i = 0; drives[i] != NULL && i < 24; i++) {
@ -827,6 +827,7 @@ void CFrame::UpdateGUI()
// File
m_pMenuItemOpen->Enable(!initialized);
m_pMenuItemOpenDrive->Enable(!initialized);
// Emulation
m_pMenuItemStop->Enable(running || paused);