mirror of https://github.com/mgba-emu/mgba.git
mGUI: Fix crash when runner->running is null
This commit is contained in:
parent
75865cab94
commit
83397d5618
|
@ -651,7 +651,7 @@ void mGUIRunloop(struct mGUIRunner* runner) {
|
|||
mInputMapLoad(&runner->params.keyMap, runner->keySources[i].id, mCoreConfigGetInput(&runner->config));
|
||||
}
|
||||
}
|
||||
while (runner->running(runner)) {
|
||||
while (!runner->running || runner->running(runner)) {
|
||||
char path[PATH_MAX];
|
||||
const char* preselect = mCoreConfigGetValue(&runner->config, "lastGame");
|
||||
if (preselect) {
|
||||
|
|
Loading…
Reference in New Issue