Fix a couple race conditions.

Checks if another game is already starting to boot before starting to boot a new one, and only change video backend, and dual core if a game is actually not running.
This commit is contained in:
Rachel Bryk 2014-05-23 09:45:14 -04:00
parent b58753bd69
commit e6684d17c1
3 changed files with 6 additions and 1 deletions

View file

@ -882,6 +882,8 @@ void CConfigMain::CoreSettingsChanged(wxCommandEvent& event)
{
// Core - Basic
case ID_CPUTHREAD:
if (Core::GetState() != Core::CORE_UNINITIALIZED)
return;
SConfig::GetInstance().m_LocalCoreStartupParameter.bCPUThread = CPUThread->IsChecked();
break;
case ID_IDLESKIP: