mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
HW/DVDInterface: Refactor to class.
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user