mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 09:39:56 +00:00
Cleanups
This commit is contained in:
parent
ccac72f1e7
commit
b4c5f98245
@ -357,7 +357,7 @@ static void engine_handle_cmd(void)
|
|||||||
if (!system->shutdown)
|
if (!system->shutdown)
|
||||||
{
|
{
|
||||||
RARCH_LOG("Pausing RetroArch.\n");
|
RARCH_LOG("Pausing RetroArch.\n");
|
||||||
rarch_main_set_paused(true);
|
rarch_main_set_pause(true);
|
||||||
rarch_main_set_idle(true);
|
rarch_main_set_idle(true);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -387,7 +387,7 @@ static void engine_handle_cmd(void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case APP_CMD_GAINED_FOCUS:
|
case APP_CMD_GAINED_FOCUS:
|
||||||
rarch_main_set_paused(false);
|
rarch_main_set_pause(false);
|
||||||
rarch_main_set_idle(false);
|
rarch_main_set_idle(false);
|
||||||
|
|
||||||
if ((android_app->sensor_state_mask
|
if ((android_app->sensor_state_mask
|
||||||
|
@ -47,7 +47,7 @@ static void rarch_enable_ui(void)
|
|||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
|
|
||||||
global->ui_companion_is_on_foreground = true;
|
global->ui_companion_is_on_foreground = true;
|
||||||
rarch_main_set_paused(true);
|
rarch_main_set_pause(true);
|
||||||
rarch_main_set_idle(true);
|
rarch_main_set_idle(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ static void rarch_disable_ui(void)
|
|||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
|
|
||||||
global->ui_companion_is_on_foreground = false;
|
global->ui_companion_is_on_foreground = false;
|
||||||
rarch_main_set_paused(false);
|
rarch_main_set_pause(false);
|
||||||
rarch_main_set_idle(false);
|
rarch_main_set_idle(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user