UI: Fix occassional issue starting second game.

Sometimes render() would be called before update() after creating
EmuScreen, and we'd exit out instead of starting the game.
This commit is contained in:
Unknown W. Brackets
2018-09-17 22:45:09 -07:00
parent 66e13f774d
commit ed90ab4fa6
+3
View File
@@ -129,6 +129,9 @@ EmuScreen::EmuScreen(const std::string &filename)
frameStep_ = false;
lastNumFlips = gpuStats.numFlips;
startDumping = false;
// Make sure we don't leave it at powerdown after the last game.
if (coreState == CORE_POWERDOWN)
coreState = CORE_STEPPING;
OnDevMenu.Handle(this, &EmuScreen::OnDevTools);
}