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
@@ -35,6 +35,7 @@ - Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642)
- Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769) - Qt: Fix a race condition in the frame inspector - Qt: Add dummy English translation file (fixes mgba.io/i/1469) + - mGUI: Fix closing down a game if an exit is signalled - SM83: Simplify register pair access on big endian - VFS: Fix directory node listing on some filesystems Misc:
M
src/feature/gui/gui-runner.c
→
src/feature/gui/gui-runner.c
@@ -541,6 +541,9 @@ }
++frame; } } + if (!running) { + break; + } if (runner->paused) { runner->paused(runner);@@ -651,7 +654,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) {