mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 10:49:02 +00:00
Get rid of runloop_ctl call in state_manager.c
This commit is contained in:
parent
68dc34d5a4
commit
ab8680c339
@ -578,7 +578,7 @@ void state_manager_event_deinit(void)
|
||||
* Checks if rewind toggle/hold was being pressed and/or held.
|
||||
**/
|
||||
void state_manager_check_rewind(bool pressed,
|
||||
unsigned rewind_granularity)
|
||||
unsigned rewind_granularity, bool is_paused)
|
||||
{
|
||||
static bool first = true;
|
||||
|
||||
@ -611,8 +611,7 @@ void state_manager_check_rewind(bool pressed,
|
||||
|
||||
runloop_msg_queue_push(
|
||||
msg_hash_to_str(MSG_REWINDING), 0,
|
||||
runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL)
|
||||
? 1 : 30, true);
|
||||
is_paused ? 1 : 30, true);
|
||||
|
||||
serial_info.data_const = buf;
|
||||
serial_info.size = rewind_state.size;
|
||||
|
@ -40,7 +40,7 @@ void state_manager_event_init(unsigned rewind_buffer_size);
|
||||
*
|
||||
* Checks if rewind toggle/hold was being pressed and/or held.
|
||||
**/
|
||||
void state_manager_check_rewind(bool pressed, unsigned rewind_granularity);
|
||||
void state_manager_check_rewind(bool pressed, unsigned rewind_granularity, bool is_paused);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
||||
|
@ -968,7 +968,7 @@ static enum runloop_state runloop_check_state(
|
||||
if (!settings->cheevos.hardcore_mode_enable)
|
||||
#endif
|
||||
state_manager_check_rewind(runloop_cmd_press(current_input, RARCH_REWIND),
|
||||
settings->rewind_granularity);
|
||||
settings->rewind_granularity, runloop_paused);
|
||||
|
||||
runloop_slowmotion = runloop_cmd_press(current_input, RARCH_SLOWMOTION);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user