From 45af11efe939bdba08a8ca352d5a9f0b05bab98f Mon Sep 17 00:00:00 2001 From: sonninnos <45124675+sonninnos@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:40:40 +0300 Subject: [PATCH] Fix menu sounds after loading core (#15539) --- runloop.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/runloop.c b/runloop.c index 3cede99b3d..e3435b7ad1 100644 --- a/runloop.c +++ b/runloop.c @@ -5874,10 +5874,11 @@ static enum runloop_state_enum runloop_check_state( #else bool menu_pause_libretro = settings->bools.menu_pause_libretro; #endif - bool libretro_running = !(runloop_st->flags & RUNLOOP_FLAG_PAUSED) - && !menu_pause_libretro - && runloop_is_inited - && (runloop_st->current_core_type != CORE_TYPE_DUMMY); + bool libretro_running = + runloop_is_inited + && !(runloop_st->flags & RUNLOOP_FLAG_PAUSED) + && ( !menu_pause_libretro + && runloop_st->flags & RUNLOOP_FLAG_CORE_RUNNING); if (menu) {