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

@ -1274,9 +1274,9 @@ void PlayController(GCPadStatus* PadStatus, int controllerID)
if (s_padState.disc)
{
Core::RunAsCPUThread([] {
if (!DVDInterface::AutoChangeDisc())
auto& system = Core::System::GetInstance();
if (!system.GetDVDInterface().AutoChangeDisc())
{
auto& system = Core::System::GetInstance();
system.GetCPU().Break();
PanicAlertFmtT("Change the disc to {0}", s_discChange);
}