Core: Don't reopen everything when we just want to reopen the CDVD

This commit is contained in:
TheLastRar 2020-11-18 00:54:31 +00:00 committed by refractionpcsx2
parent f2fa60e56b
commit ba1497ca48
1 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,7 @@
#include "System.h" #include "System.h"
#include "SysThreads.h" #include "SysThreads.h"
#include "CDVD/CDVDaccess.h"
// -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
// SysThreadBase *External Thread* Implementations // SysThreadBase *External Thread* Implementations
@ -314,7 +315,8 @@ bool SysThreadBase::StateCheckInThread()
m_RunningLock.Acquire(); m_RunningLock.Acquire();
if( m_ExecMode != ExecMode_Closing ) if( m_ExecMode != ExecMode_Closing )
{ {
OnResumeInThread( g_CDVDReset ); if ( g_CDVDReset )
DoCDVDopen();
g_CDVDReset = false; g_CDVDReset = false;
break; break;
} }
@ -338,6 +340,7 @@ bool SysThreadBase::StateCheckInThread()
m_RunningLock.Acquire(); m_RunningLock.Acquire();
OnResumeInThread( true ); OnResumeInThread( true );
g_CDVDReset = false;
break; break;
jNO_DEFAULT; jNO_DEFAULT;