mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
(iOS) Buildfix
This commit is contained in:
parent
99ca95a100
commit
133b4754a4
@ -71,12 +71,16 @@ static void rarch_draw_observer(CFRunLoopObserverRef observer,
|
||||
CFRunLoopActivity activity, void *info)
|
||||
{
|
||||
bool is_idle;
|
||||
bool sleeping = false;
|
||||
unsigned sleep_ms = 0;
|
||||
int ret = rarch_main_iterate(&sleep_ms);
|
||||
|
||||
if (ret == 1 && !ui_companion_is_on_foreground() && sleep_ms > 0)
|
||||
{
|
||||
sleeping = true;
|
||||
retro_sleep(sleep_ms);
|
||||
rarch_main_data_iterate();
|
||||
}
|
||||
rarch_main_data_iterate(sleeping);
|
||||
|
||||
if (ret == -1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user