Core: Attempt to fix CDVD regression

This commit is contained in:
TheLastRar authored and refractionpcsx2 committed 2021-01-17 13:45:25 +00:00
1 parent 406403cd8e
commit 5826be9a74
3 files changed
+6 -2

No files matched your search

-1
View File
@@ -326,7 +326,6 @@ void SysCoreThread::OnResumeInThread(bool isSuspended)
GetCorePlugins().Open();
if (isSuspended)
{
DoCDVDopen();
DEV9open((void*)pDsp);
USBopen((void*)pDsp);
}
+3 -1
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;
}
+3
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);