mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Simplify runloop_iterate_time_to_exit
This commit is contained in:
parent
c98ef48860
commit
d3834bb795
@ -760,7 +760,6 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
|
||||
*/
|
||||
static INLINE int runloop_iterate_time_to_exit(bool quit_key_pressed)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
bool time_to_exit = runloop_shutdown_initiated;
|
||||
time_to_exit = time_to_exit || quit_key_pressed;
|
||||
time_to_exit = time_to_exit || !video_driver_is_alive();
|
||||
@ -776,8 +775,11 @@ static INLINE int runloop_iterate_time_to_exit(bool quit_key_pressed)
|
||||
if (runloop_exec)
|
||||
runloop_exec = false;
|
||||
|
||||
if (runloop_core_shutdown_initiated &&
|
||||
settings && settings->load_dummy_on_core_shutdown)
|
||||
if (runloop_core_shutdown_initiated)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
if (settings->load_dummy_on_core_shutdown)
|
||||
{
|
||||
content_ctx_info_t content_info = {0};
|
||||
if (!task_push_content_load_default(
|
||||
@ -795,6 +797,7 @@ static INLINE int runloop_iterate_time_to_exit(bool quit_key_pressed)
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Quits out of RetroArch main loop. */
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user