Buildfix
This commit is contained in:
parent
4a3b9ffc7c
commit
f95be06f13
|
@ -322,13 +322,18 @@ int rarch_main(int argc, char *argv[], void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef HAVE_MAIN
|
#ifndef HAVE_MAIN
|
||||||
do{
|
do
|
||||||
|
{
|
||||||
|
bool sleeping = false;
|
||||||
unsigned sleep_ms = 0;
|
unsigned sleep_ms = 0;
|
||||||
ret = rarch_main_iterate(&sleep_ms);
|
ret = rarch_main_iterate(&sleep_ms);
|
||||||
|
|
||||||
if (ret == 1 && sleep_ms > 0)
|
if (ret == 1 && sleep_ms > 0)
|
||||||
|
{
|
||||||
|
sleeping = true;
|
||||||
retro_sleep(sleep_ms);
|
retro_sleep(sleep_ms);
|
||||||
rarch_main_data_iterate();
|
}
|
||||||
|
rarch_main_data_iterate(sleeping);
|
||||||
}while(ret != -1);
|
}while(ret != -1);
|
||||||
|
|
||||||
main_exit(args);
|
main_exit(args);
|
||||||
|
|
|
@ -17,7 +17,9 @@
|
||||||
#define __RETROARCH_RUNLOOP_H
|
#define __RETROARCH_RUNLOOP_H
|
||||||
|
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|
||||||
#include <rthreads/async_job.h>
|
#include <rthreads/async_job.h>
|
||||||
|
|
||||||
#include "libretro.h"
|
#include "libretro.h"
|
||||||
#include "core_info.h"
|
#include "core_info.h"
|
||||||
#include "core_options.h"
|
#include "core_options.h"
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
#ifndef __RETROARCH_DATA_RUNLOOP_H
|
#ifndef __RETROARCH_DATA_RUNLOOP_H
|
||||||
#define __RETROARCH_DATA_RUNLOOP_H
|
#define __RETROARCH_DATA_RUNLOOP_H
|
||||||
|
|
||||||
|
#include <boolean.h>
|
||||||
#include <retro_miscellaneous.h>
|
#include <retro_miscellaneous.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue