mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Replace some more runloop_ctl calls
This commit is contained in:
parent
ea47660282
commit
763f7ecb01
@ -451,7 +451,7 @@ static bool runloop_check_state(event_cmd_state_t *cmd)
|
||||
bool tmp = false;
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
if (!cmd || runloop_ctl(RUNLOOP_CTL_IS_IDLE, NULL))
|
||||
if (!cmd || runloop_idle)
|
||||
return false;
|
||||
|
||||
if (runloop_cmd_triggered(cmd, RARCH_SCREENSHOT))
|
||||
@ -500,7 +500,7 @@ static bool runloop_check_state(event_cmd_state_t *cmd)
|
||||
command_event(CMD_EVENT_LOAD_STATE, NULL);
|
||||
|
||||
#ifdef HAVE_CHEEVOS
|
||||
if(!settings->cheevos.hardcore_mode_enable)
|
||||
if (!settings->cheevos.hardcore_mode_enable)
|
||||
#endif
|
||||
state_manager_check_rewind(runloop_cmd_press(cmd, RARCH_REWIND));
|
||||
|
||||
@ -1131,7 +1131,7 @@ static int runloop_iterate_menu(enum menu_action action, unsigned *sleep_ms)
|
||||
settings_t *settings = config_get_ptr();
|
||||
bool focused = (settings &&
|
||||
settings->pause_nonactive) ? video_driver_is_focused() : true;
|
||||
bool is_idle = runloop_ctl(RUNLOOP_CTL_IS_IDLE, NULL);
|
||||
bool is_idle = runloop_idle;
|
||||
|
||||
focused = focused && !ui_companion_is_on_foreground();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user