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

@ -888,6 +888,8 @@ void CFrame::ToggleDisplayMode(bool bFullscreen)
// Prepare the GUI to start the game.
void CFrame::StartGame(const std::string& filename)
{
if (m_bGameLoading)
return;
m_bGameLoading = true;
if (m_ToolBar)