mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Restore this code
This commit is contained in:
parent
cf12a10ba0
commit
0a4bc116df
@ -167,8 +167,13 @@ int rarch_main(int argc, char *argv[], void *data)
|
||||
{
|
||||
do
|
||||
{
|
||||
int ret;
|
||||
unsigned sleep_ms = 0;
|
||||
int ret = runloop_iterate(&sleep_ms);
|
||||
|
||||
if (ui_application->process_events)
|
||||
ui_application->process_events();
|
||||
|
||||
ret = runloop_iterate(&sleep_ms);
|
||||
|
||||
if (ret == 1 && sleep_ms > 0)
|
||||
retro_sleep(sleep_ms);
|
||||
|
15
retroarch.c
15
retroarch.c
@ -19360,14 +19360,6 @@ static enum runloop_state runloop_check_state(
|
||||
/* Should be called once per frame */
|
||||
if (!appletMainLoop())
|
||||
return RUNLOOP_STATE_QUIT;
|
||||
#elif !defined(HAVE_COCOA) && !defined(HAVE_COCOATOUCH)
|
||||
if (!video_driver_is_threaded_internal())
|
||||
{
|
||||
const ui_application_t *application = ui_companion
|
||||
? ui_companion->application : NULL;
|
||||
if (application)
|
||||
application->process_events();
|
||||
}
|
||||
#endif
|
||||
|
||||
BIT256_CLEAR_ALL_PTR(¤t_bits);
|
||||
@ -19408,6 +19400,13 @@ static enum runloop_state runloop_check_state(
|
||||
}
|
||||
}
|
||||
|
||||
if (!video_driver_is_threaded_internal())
|
||||
{
|
||||
const ui_application_t *application = ui_companion
|
||||
? ui_companion->application : NULL;
|
||||
if (application)
|
||||
application->process_events();
|
||||
}
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
if (menu_driver_binding_state)
|
||||
|
Loading…
x
Reference in New Issue
Block a user