mGUI: Fix closing down a game if an exit is signalled
Vicki Pfau vi@endrift.com
Sat, 08 Aug 2020 04:06:14 -0700
2 files changed,
5 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -2,6 +2,7 @@ 0.8.4: (Future)
Other fixes: - 3DS: Redo video sync to be more precise - Qt: Add dummy English translation file (fixes mgba.io/i/1469) + - mGUI: Fix closing down a game if an exit is signalled - VFS: Fix directory node listing on some filesystems 0.8.3: (2020-08-03)
M
src/feature/gui/gui-runner.c
→
src/feature/gui/gui-runner.c
@@ -538,6 +538,9 @@ }
++frame; } } + if (!running) { + break; + } if (runner->paused) { runner->paused(runner);@@ -648,7 +651,7 @@ for (i = 0; runner->keySources[i].id; ++i) {
mInputMapLoad(&runner->params.keyMap, runner->keySources[i].id, mCoreConfigGetInput(&runner->config)); } } - while (true) { + while (runner->running(runner)) { char path[PATH_MAX]; const char* preselect = mCoreConfigGetValue(&runner->config, "lastGame"); if (preselect) {