mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 19:24:46 +00:00
Cleanup
This commit is contained in:
parent
34f0a4f49f
commit
370b18e95b
@ -261,7 +261,6 @@ static bool runloop_check_state(event_cmd_state_t *cmd)
|
|||||||
static bool old_focus = true;
|
static bool old_focus = true;
|
||||||
bool tmp = false;
|
bool tmp = false;
|
||||||
bool focused = true;
|
bool focused = true;
|
||||||
bool old_is_paused = runloop_paused;
|
|
||||||
bool pause_pressed = runloop_cmd_triggered(cmd, RARCH_PAUSE_TOGGLE);
|
bool pause_pressed = runloop_cmd_triggered(cmd, RARCH_PAUSE_TOGGLE);
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
@ -304,7 +303,7 @@ static bool runloop_check_state(event_cmd_state_t *cmd)
|
|||||||
* unpause the libretro core. */
|
* unpause the libretro core. */
|
||||||
|
|
||||||
/* FRAMEADVANCE will set us into pause mode. */
|
/* FRAMEADVANCE will set us into pause mode. */
|
||||||
pause_pressed |= !old_is_paused && runloop_cmd_triggered(cmd, RARCH_FRAMEADVANCE);
|
pause_pressed |= !runloop_paused && runloop_cmd_triggered(cmd, RARCH_FRAMEADVANCE);
|
||||||
|
|
||||||
if (focused && pause_pressed)
|
if (focused && pause_pressed)
|
||||||
command_event(CMD_EVENT_PAUSE_TOGGLE, NULL);
|
command_event(CMD_EVENT_PAUSE_TOGGLE, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user