@@ -5587,7 +5587,6 @@ static enum runloop_state_enum runloop_check_state(
55875587 gfx_display_t * p_disp = disp_get_ptr ();
55885588 runloop_state_t * runloop_st = & runloop_state ;
55895589 static bool old_focus = true;
5590- static bool runloop_paused_hotkey = false;
55915590 struct retro_callbacks * cbs = & runloop_st -> retro_ctx ;
55925591 bool is_focused = false;
55935592 bool is_alive = false;
@@ -5669,10 +5668,10 @@ static enum runloop_state_enum runloop_check_state(
56695668 {
56705669 BIT256_CLEAR_ALL (current_bits );
56715670 if ( runloop_paused
5672- && !runloop_paused_hotkey
5671+ && !runloop_st -> paused_hotkey
56735672 && menu_pause_libretro )
56745673 BIT256_SET (current_bits , RARCH_PAUSE_TOGGLE );
5675- else if (runloop_paused_hotkey )
5674+ else if (runloop_st -> paused_hotkey )
56765675 {
56775676 /* Restore pause if pause is triggered with both hotkey and menu,
56785677 * and restore cached video frame to continue properly to
@@ -6518,7 +6517,7 @@ static enum runloop_state_enum runloop_check_state(
65186517 bool pause_pressed = BIT256_GET (current_bits , RARCH_PAUSE_TOGGLE );
65196518
65206519 /* Decide pause hotkey */
6521- runloop_pause_toggle (& runloop_paused_hotkey ,
6520+ runloop_pause_toggle (& runloop_st -> paused_hotkey ,
65226521 pause_pressed , old_pause_pressed ,
65236522 focused , old_focus );
65246523
@@ -6595,7 +6594,7 @@ static enum runloop_state_enum runloop_check_state(
65956594 }
65966595
65976596 /* Decide pause hotkey */
6598- runloop_pause_toggle (& runloop_paused_hotkey ,
6597+ runloop_pause_toggle (& runloop_st -> paused_hotkey ,
65996598 pause_pressed , old_pause_pressed ,
66006599 focused , old_focus );
66016600
0 commit comments