Get rid of runloop_ctl call in state_manager.c

This commit is contained in:
twinaphex 2017-01-23 14:44:32 +01:00
parent 68dc34d5a4
commit ab8680c339
3 changed files with 4 additions and 5 deletions

View File

@ -578,7 +578,7 @@ void state_manager_event_deinit(void)
* Checks if rewind toggle/hold was being pressed and/or held. * Checks if rewind toggle/hold was being pressed and/or held.
**/ **/
void state_manager_check_rewind(bool pressed, void state_manager_check_rewind(bool pressed,
unsigned rewind_granularity) unsigned rewind_granularity, bool is_paused)
{ {
static bool first = true; static bool first = true;
@ -611,8 +611,7 @@ void state_manager_check_rewind(bool pressed,
runloop_msg_queue_push( runloop_msg_queue_push(
msg_hash_to_str(MSG_REWINDING), 0, msg_hash_to_str(MSG_REWINDING), 0,
runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL) is_paused ? 1 : 30, true);
? 1 : 30, true);
serial_info.data_const = buf; serial_info.data_const = buf;
serial_info.size = rewind_state.size; serial_info.size = rewind_state.size;

View File

@ -40,7 +40,7 @@ void state_manager_event_init(unsigned rewind_buffer_size);
* *
* Checks if rewind toggle/hold was being pressed and/or held. * 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 RETRO_END_DECLS

View File

@ -968,7 +968,7 @@ static enum runloop_state runloop_check_state(
if (!settings->cheevos.hardcore_mode_enable) if (!settings->cheevos.hardcore_mode_enable)
#endif #endif
state_manager_check_rewind(runloop_cmd_press(current_input, RARCH_REWIND), 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); runloop_slowmotion = runloop_cmd_press(current_input, RARCH_SLOWMOTION);