Core: Attempt to fix CDVD regression

This commit is contained in:
TheLastRar 2021-01-09 16:37:36 +00:00 committed by refractionpcsx2
parent 406403cd8e
commit 5826be9a74
3 changed files with 6 additions and 2 deletions

View File

@ -326,7 +326,6 @@ void SysCoreThread::OnResumeInThread(bool isSuspended)
GetCorePlugins().Open();
if (isSuspended)
{
DoCDVDopen();
DEV9open((void*)pDsp);
USBopen((void*)pDsp);
}

View File

@ -332,7 +332,9 @@ bool SysThreadBase::StateCheckInThread()
if (m_ExecMode != ExecMode_Closing)
{
if (g_CDVDReset)
DoCDVDopen();
//AppCoreThread deals with Reseting CDVD
OnResumeInThread(false);
g_CDVDReset = false;
break;
}

View File

@ -585,8 +585,11 @@ void AppCoreThread::OnResumeInThread(bool isSuspended)
{
CDVDsys_ChangeSource(g_Conf->CdvdSource);
cdvdCtrlTrayOpen();
DoCDVDopen();
m_resetCdvd = false;
}
else if (isSuspended)
DoCDVDopen();
_parent::OnResumeInThread(isSuspended);
PostCoreStatus(CoreThread_Resumed);