This commit is contained in:
twinaphex 2015-11-27 23:39:43 +01:00
parent 4a3b9ffc7c
commit f95be06f13
3 changed files with 10 additions and 2 deletions

View File

@ -322,13 +322,18 @@ int rarch_main(int argc, char *argv[], void *data)
}
#ifndef HAVE_MAIN
do{
do
{
bool sleeping = false;
unsigned sleep_ms = 0;
ret = rarch_main_iterate(&sleep_ms);
if (ret == 1 && sleep_ms > 0)
{
sleeping = true;
retro_sleep(sleep_ms);
rarch_main_data_iterate();
}
rarch_main_data_iterate(sleeping);
}while(ret != -1);
main_exit(args);

View File

@ -17,7 +17,9 @@
#define __RETROARCH_RUNLOOP_H
#include <setjmp.h>
#include <rthreads/async_job.h>
#include "libretro.h"
#include "core_info.h"
#include "core_options.h"

View File

@ -16,6 +16,7 @@
#ifndef __RETROARCH_DATA_RUNLOOP_H
#define __RETROARCH_DATA_RUNLOOP_H
#include <boolean.h>
#include <retro_miscellaneous.h>
#ifdef __cplusplus