HW/DVDInterface: Refactor to class.

This commit is contained in:
Admiral H. Curtiss
2023-03-09 21:43:03 +01:00
parent 3ec32c5aa5
commit eb25c46a91
18 changed files with 578 additions and 607 deletions

View File

@ -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()