Skip to content

Commit

Permalink
SysThreadBase: Fix double init of SPU2 etc
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek authored and refractionpcsx2 committed Jan 6, 2022
1 parent 1dbc11b commit e40c2f9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pcsx2/System/SysThreadBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,15 +333,11 @@ bool SysThreadBase::StateCheckInThread()
if (m_ExecMode != ExecMode_Closing)
{
#ifndef PCSX2_CORE
if (g_CDVDReset)
// AppCoreThread deals with Reseting CDVD
// Reinit all but GS, USB, DEV9, CDVD (just like with isSuspend = false previously)
OnResumeInThread(static_cast<SystemsMask>(~(System_GS|System_USB|System_DEV9|System_CDVD)));
else
// Reinit previously torn down systems
OnResumeInThread(systemsToTearDown);

// AppCoreThread deals with Reseting CDVD
OnResumeInThread(g_CDVDReset ? static_cast<SystemsMask>(systemsToTearDown & ~(System_CDVD)) : systemsToTearDown);
g_CDVDReset = false;
#else
OnResumeInThread(systemsToTearDown);
#endif
break;
}
Expand Down

0 comments on commit e40c2f9

Please sign in to comment.