mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-20 09:34:09 +00:00
(ui_cocoa) Cleanup main loop
This commit is contained in:
parent
9d3d466092
commit
da64bb0f0d
@ -222,9 +222,9 @@ static char** waiting_argv;
|
||||
|
||||
- (void) rarch_main
|
||||
{
|
||||
int ret = 0;
|
||||
while (ret != -1)
|
||||
do
|
||||
{
|
||||
int ret;
|
||||
unsigned sleep_ms = 0;
|
||||
const ui_application_t *application = ui_companion_driver_get_application_ptr();
|
||||
if (application)
|
||||
@ -234,7 +234,9 @@ static char** waiting_argv;
|
||||
retro_sleep(sleep_ms);
|
||||
task_queue_ctl(TASK_QUEUE_CTL_CHECK, NULL);
|
||||
while(CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.002, FALSE) == kCFRunLoopRunHandledSource);
|
||||
}
|
||||
if (ret == -1)
|
||||
break;
|
||||
}while(1);
|
||||
|
||||
main_exit(NULL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user