mirror of https://github.com/PCSX2/pcsx2.git
Core: Don't reopen everything when we just want to reopen the CDVD
This commit is contained in:
parent
f2fa60e56b
commit
ba1497ca48
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue