From dfef7a5ba3385c9d5eaa9b98d169cd28e3250572 Mon Sep 17 00:00:00 2001 From: sonninnos <45124675+sonninnos@users.noreply.github.com> Date: Wed, 22 Feb 2023 20:02:36 +0200 Subject: [PATCH] Don't take rewind steps while menu pause active (#15009) --- runloop.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runloop.c b/runloop.c index e109179de0..c89c2baccd 100644 --- a/runloop.c +++ b/runloop.c @@ -5913,7 +5913,12 @@ static enum runloop_state_enum runloop_check_state( &runloop_st->current_core, rewind_pressed, settings->uints.rewind_granularity, - runloop_paused, + runloop_paused +#ifdef HAVE_MENU + || ( (menu_st->flags & MENU_ST_FLAG_ALIVE) + && settings->bools.menu_pause_libretro) +#endif + , s, sizeof(s), &t); old_rewind_pressed = rewind_pressed;