all repos — mgba @ 00321dd9de6d8c93090c601e5b44fabde2550028

mGBA Game Boy Advance Emulator

mGUI: Fix closing down a game if an exit is signalled
Vicki Pfau vi@endrift.com
Sat, 08 Aug 2020 04:06:14 -0700
commit

00321dd9de6d8c93090c601e5b44fabde2550028

parent

b8c2f0c6b0b5aaed15421a467eedecb6077024e9

2 files changed, 5 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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) {