mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
HW/DVDInterface: Refactor to class.
This commit is contained in:
parent
3ec32c5aa5
commit
eb25c46a91
18 changed files with 578 additions and 607 deletions
|
@ -746,12 +746,15 @@ void MainWindow::ChangeDisc()
|
|||
std::vector<std::string> paths = StringListToStdVector(PromptFileNames());
|
||||
|
||||
if (!paths.empty())
|
||||
Core::RunAsCPUThread([&paths] { DVDInterface::ChangeDisc(paths); });
|
||||
Core::RunAsCPUThread(
|
||||
[&paths] { Core::System::GetInstance().GetDVDInterface().ChangeDisc(paths); });
|
||||
}
|
||||
|
||||
void MainWindow::EjectDisc()
|
||||
{
|
||||
Core::RunAsCPUThread([] { DVDInterface::EjectDisc(DVDInterface::EjectCause::User); });
|
||||
Core::RunAsCPUThread([] {
|
||||
Core::System::GetInstance().GetDVDInterface().EjectDisc(DVDInterface::EjectCause::User);
|
||||
});
|
||||
}
|
||||
|
||||
void MainWindow::OpenUserFolder()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue