From ab0f08f68af74a6a82bdb52f97bccc661bf937c1 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 23 Feb 2019 18:33:42 -0800 Subject: [PATCH] 3DS: Work around menu freezing (fixes #1294) --- CHANGES | 1 + src/feature/gui/gui-runner.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGES b/CHANGES index 58fe1e67d..ea1251154 100644 --- a/CHANGES +++ b/CHANGES @@ -19,6 +19,7 @@ Bugfixes: - GBA Video: Fix enabling layers in non-tile modes (fixes mgba.io/i/1317) - Qt: Fix quick load recent accidentally saving (fixes mgba.io/i/1309) - GBA: Fix video timing when skipping BIOS (fixes mgba.io/i/1318) + - 3DS: Work around menu freezing (fixes mgba.io/i/1294) Misc: - GBA Video: Improve sprite cycle counting (fixes mgba.io/i/1274) diff --git a/src/feature/gui/gui-runner.c b/src/feature/gui/gui-runner.c index 3dc0965a6..0afbd355e 100644 --- a/src/feature/gui/gui-runner.c +++ b/src/feature/gui/gui-runner.c @@ -548,6 +548,10 @@ void mGUIRun(struct mGUIRunner* runner, const char* path) { runner->params.drawStart(); runner->drawFrame(runner, true); runner->params.drawEnd(); +#ifdef _3DS + // XXX: Why does this fix #1294? + usleep(1000); +#endif GUIPollInput(&runner->params, 0, &keys); } if (runner->unpaused) {