Fail to start if sync core plugins fail to initialize

This commit is contained in:
zilmar 2012-10-04 11:43:42 +10:00
parent 236f2a1ddb
commit c291ab8457
1 changed files with 8 additions and 4 deletions

View File

@ -814,10 +814,14 @@ void CN64System::ExecuteSyncCPU ()
m_Recomp = new CRecompiler(m_Profile,m_EndEmulation); m_Recomp = new CRecompiler(m_Profile,m_EndEmulation);
SetActiveSystem(); SetActiveSystem();
m_SyncCPU->SetActiveSystem(); if (m_SyncCPU->SetActiveSystem())
SetActiveSystem(); {
SetActiveSystem();
m_Recomp->Run(); m_Recomp->Run();
} else {
SetActiveSystem();
_Notify->DisplayError(MSG_PLUGIN_NOT_INIT);
}
} }
void CN64System::CpuStopped ( void ) { void CN64System::CpuStopped ( void ) {