Permalink
Browse files

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.
  • Loading branch information...
unknownbrackets committed Sep 18, 2018
1 parent 66e13f7 commit ed90ab4fa6f87fc2edaedc95e94d976b051df230
Showing with 3 additions and 0 deletions.
  1. +3 −0 UI/EmuScreen.cpp
View
@@ -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);
}

0 comments on commit ed90ab4

Please sign in to comment.