mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-10 21:10:15 +00:00
Pass settings pointer
This commit is contained in:
parent
a96457b90d
commit
b923182e0b
@ -816,7 +816,9 @@ static INLINE int runloop_iterate_time_to_exit(bool quit_key_pressed)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum runloop_state runloop_check_state(event_cmd_state_t *cmd, unsigned *sleep_ms)
|
static enum runloop_state runloop_check_state(
|
||||||
|
settings_t *settings,
|
||||||
|
event_cmd_state_t *cmd, unsigned *sleep_ms)
|
||||||
{
|
{
|
||||||
static bool old_focus = true;
|
static bool old_focus = true;
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
@ -826,7 +828,6 @@ static enum runloop_state runloop_check_state(event_cmd_state_t *cmd, unsigned *
|
|||||||
bool tmp = false;
|
bool tmp = false;
|
||||||
bool focused = true;
|
bool focused = true;
|
||||||
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();
|
|
||||||
|
|
||||||
if (input_driver_is_flushing_input())
|
if (input_driver_is_flushing_input())
|
||||||
{
|
{
|
||||||
@ -1178,7 +1179,7 @@ int runloop_iterate(event_cmd_state_t *cmd, unsigned *sleep_ms)
|
|||||||
runloop_frame_time.callback(delta);
|
runloop_frame_time.callback(delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
runloop_status = runloop_check_state(cmd, sleep_ms);
|
runloop_status = runloop_check_state(settings, cmd, sleep_ms);
|
||||||
|
|
||||||
switch (runloop_status)
|
switch (runloop_status)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user