summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2023-03-10 16:51:19 -0500
committerGitHub <noreply@github.com>2023-03-10 16:51:19 -0500
commit00a6f8c82c8631b8a53feaedad930057cdd8cc0d (patch)
tree4fdb88180e5aa5064250b7371b94f1f87d98e502 /Source/Core/DolphinQt/MainWindow.cpp
parent3ec32c5aa5e48e99c415d50ae816d517057feee0 (diff)
parentd31733ce6431fa6fd16f2d2bbdb747e447c0c1aa (diff)
Merge pull request #11637 from AdmiralCurtiss/dvd-class
HW/DVD: Refactor DVDInterface and DVDThread to classes.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 59fc19f6a3..ac34999c4d 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -746,12 +746,14 @@ 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(DVD::EjectCause::User); });
}
void MainWindow::OpenUserFolder()