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
|
do
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
unsigned sleep_ms = 0;
|
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)
|
if (ret == 1 && sleep_ms > 0)
|
||||||
retro_sleep(sleep_ms);
|
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 */
|
/* Should be called once per frame */
|
||||||
if (!appletMainLoop())
|
if (!appletMainLoop())
|
||||||
return RUNLOOP_STATE_QUIT;
|
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
|
#endif
|
||||||
|
|
||||||
BIT256_CLEAR_ALL_PTR(¤t_bits);
|
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
|
#ifdef HAVE_MENU
|
||||||
if (menu_driver_binding_state)
|
if (menu_driver_binding_state)
|
||||||
|
|
Loading…
Reference in New Issue