all repos — mgba @ 214febf7278033bf8642311755423212fa0a21c0

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

214febf7278033bf8642311755423212fa0a21c0

parent

e131831238851145d6e52370fdef664eff9967b7

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

jump to
M CHANGESCHANGES

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