DVDInterface: Modernize With CPUThreadGuard

This commit is contained in:
mitaclaw
2024-03-04 16:45:25 -08:00
parent 8f6fd912f7
commit fe61efcd7a
7 changed files with 39 additions and 32 deletions

View File

@ -879,9 +879,8 @@ void GameList::ChangeDisc()
if (!game)
return;
Core::RunAsCPUThread([file_path = game->GetFilePath()] {
Core::System::GetInstance().GetDVDInterface().ChangeDisc(file_path);
});
auto& system = Core::System::GetInstance();
system.GetDVDInterface().ChangeDisc(Core::CPUThreadGuard{system}, game->GetFilePath());
}
QAbstractItemView* GameList::GetActiveView() const