From ba1497ca481de6bec4fd6c9e3887319da1bbcc82 Mon Sep 17 00:00:00 2001 From: TheLastRar Date: Wed, 18 Nov 2020 00:54:31 +0000 Subject: [PATCH] Core: Don't reopen everything when we just want to reopen the CDVD --- pcsx2/System/SysThreadBase.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcsx2/System/SysThreadBase.cpp b/pcsx2/System/SysThreadBase.cpp index 865c4671db..a5680798b8 100644 --- a/pcsx2/System/SysThreadBase.cpp +++ b/pcsx2/System/SysThreadBase.cpp @@ -17,6 +17,7 @@ #include "System.h" #include "SysThreads.h" +#include "CDVD/CDVDaccess.h" // -------------------------------------------------------------------------------------- // SysThreadBase *External Thread* Implementations @@ -314,7 +315,8 @@ bool SysThreadBase::StateCheckInThread() m_RunningLock.Acquire(); if( m_ExecMode != ExecMode_Closing ) { - OnResumeInThread( g_CDVDReset ); + if ( g_CDVDReset ) + DoCDVDopen(); g_CDVDReset = false; break; } @@ -338,6 +340,7 @@ bool SysThreadBase::StateCheckInThread() m_RunningLock.Acquire(); OnResumeInThread( true ); + g_CDVDReset = false; break; jNO_DEFAULT;