Refactor do_state_checks
This commit is contained in:
parent
4bbb05f415
commit
96d2e1e88f
52
retroarch.c
52
retroarch.c
|
@ -2674,6 +2674,8 @@ static void check_netplay_flip(void)
|
|||
netplay_flip_players(g_extern.netplay);
|
||||
|
||||
old_pressed = pressed;
|
||||
|
||||
rarch_check_fullscreen();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -2729,26 +2731,8 @@ static void check_grab_mouse_toggle(void)
|
|||
old_pressed = pressed;
|
||||
}
|
||||
|
||||
static void do_state_checks(void)
|
||||
static void check_flip(void)
|
||||
{
|
||||
rarch_check_block_hotkey();
|
||||
|
||||
check_screenshot();
|
||||
check_mute();
|
||||
check_volume();
|
||||
|
||||
check_turbo();
|
||||
|
||||
check_grab_mouse_toggle();
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
rarch_check_overlay();
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NETPLAY
|
||||
if (!g_extern.netplay)
|
||||
{
|
||||
#endif
|
||||
check_pause();
|
||||
check_oneshot();
|
||||
|
||||
|
@ -2779,14 +2763,30 @@ static void do_state_checks(void)
|
|||
check_disk();
|
||||
|
||||
check_reset();
|
||||
#ifdef HAVE_NETPLAY
|
||||
}
|
||||
else
|
||||
{
|
||||
check_netplay_flip();
|
||||
rarch_check_fullscreen();
|
||||
}
|
||||
}
|
||||
|
||||
static void do_state_checks(void)
|
||||
{
|
||||
rarch_check_block_hotkey();
|
||||
|
||||
check_screenshot();
|
||||
check_mute();
|
||||
check_volume();
|
||||
|
||||
check_turbo();
|
||||
|
||||
check_grab_mouse_toggle();
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
rarch_check_overlay();
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NETPLAY
|
||||
if (g_extern.netplay)
|
||||
check_netplay_flip();
|
||||
else
|
||||
#endif
|
||||
check_flip();
|
||||
}
|
||||
|
||||
static void init_state(void)
|
||||
|
|
Loading…
Reference in New Issue