mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +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.
|
* 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;
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user