Restore this code

This commit is contained in:
twinaphex 2019-07-11 03:08:59 +02:00
parent cf12a10ba0
commit 0a4bc116df
2 changed files with 13 additions and 9 deletions

View File

@ -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);

View File

@ -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(&current_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)