mGUI: Fix closing down a game if an exit is signalled

This commit is contained in:
Vicki Pfau 2020-08-08 04:06:14 -07:00
parent b8c2f0c6b0
commit 00321dd9de
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,7 @@
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)

View File

@ -538,6 +538,9 @@ void mGUIRun(struct mGUIRunner* runner, const char* path) {
++frame;
}
}
if (!running) {
break;
}
if (runner->paused) {
runner->paused(runner);
@ -648,7 +651,7 @@ void mGUIRunloop(struct mGUIRunner* runner) {
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) {