From f8112aee59ab08b4e8bd64e5a869c0851fec2401 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 18 Dec 2023 22:57:51 -0800 Subject: [PATCH] mGUI: Persist fast forwarding after closing menu (fixes #2414) --- CHANGES | 1 + src/feature/gui/gui-runner.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 0e732633f..48900d31d 100644 --- a/CHANGES +++ b/CHANGES @@ -20,6 +20,7 @@ Other fixes: - Qt: Fix mute settings not being loaded on setting screen (fixes mgba.io/i/2990) - Vita: Fix camera setting not appearing (fixes mgba.io/i/3012) Misc: + - mGUI: Persist fast forwarding after closing menu (fixes mgba.io/i/2414) - Qt: Add exporting of SAV + RTC saves from Save Converter to strip RTC data 0.10.2: (2023-04-23) diff --git a/src/feature/gui/gui-runner.c b/src/feature/gui/gui-runner.c index 04c93563d..3412edc45 100644 --- a/src/feature/gui/gui-runner.c +++ b/src/feature/gui/gui-runner.c @@ -492,6 +492,7 @@ void mGUIRun(struct mGUIRunner* runner, const char* path) { } mLOG(GUI_RUNNER, INFO, "Game starting"); runner->fps = 0; + bool fastForward = false; while (running) { CircleBufferClear(&runner->fpsBuffer); runner->totalDelta = 0; @@ -500,7 +501,6 @@ void mGUIRun(struct mGUIRunner* runner, const char* path) { runner->lastFpsCheck = 1000000LL * tv.tv_sec + tv.tv_usec; int frame = 0; - bool fastForward = false; while (running) { if (runner->running) { running = runner->running(runner);