Merge pull request #3980 from JosJuice/changedisc-threading-simplification

DVDInterface: Simplify calling ChangeDisc from CPU thread
This commit is contained in:
Matthew Parlane
2016-07-13 22:48:47 +12:00
committed by GitHub
6 changed files with 25 additions and 24 deletions

View File

@ -132,7 +132,7 @@ void CRenderFrame::OnDropFiles(wxDropFilesEvent& event)
}
else
{
DVDInterface::ChangeDisc(filepath);
DVDInterface::ChangeDiscAsHost(filepath);
}
}

View File

@ -691,7 +691,7 @@ void CFrame::DoOpen(bool Boot)
}
else
{
DVDInterface::ChangeDisc(WxStrToStr(path));
DVDInterface::ChangeDiscAsHost(WxStrToStr(path));
}
}

View File

@ -1331,7 +1331,7 @@ void CGameListCtrl::OnChangeDisc(wxCommandEvent& WXUNUSED(event))
const GameListItem* iso = GetSelectedISO();
if (!iso || !Core::IsRunning())
return;
DVDInterface::ChangeDisc(WxStrToStr(iso->GetFileName()));
DVDInterface::ChangeDiscAsHost(WxStrToStr(iso->GetFileName()));
}
void CGameListCtrl::OnSize(wxSizeEvent& event)