Create runloop.h

This commit is contained in:
twinaphex 2015-01-09 18:40:33 +01:00
parent 357555e1cd
commit 76c392718f
5 changed files with 46 additions and 15 deletions

View File

@ -20,6 +20,7 @@
#include "../general.h"
#include "../settings.h"
#include "../retroarch.h"
#include "../runloop.h"
#include <file/file_path.h>
#if defined(RARCH_CONSOLE) || defined(RARCH_MOBILE)

View File

@ -18,6 +18,7 @@
#include "../../apple/common/CFExtensions.h"
#include "../frontend.h"
#include "../runloop.h"
#include "../../menu/disp/ios.h"
#include <stdint.h>

View File

@ -846,21 +846,6 @@ void rarch_main_init_wrap(const struct rarch_main_wrap *args,
int rarch_main_init(int argc, char *argv[]);
/**
* rarch_main_iterate:
*
* Run Libretro/RetroArch for one frame.
*
* Returns: 0 if we want to indicate to the caller that
* any top-level runtime loop needs to be forcibly woken up.
*
* 1 if we have to wait until button input in order
* to wake up the loop.
*
* -1 if we forcibly quit out of the RetroArch iteration loop.
**/
int rarch_main_iterate(void);
void rarch_playlist_load_content(content_playlist_t *playlist,
unsigned index);

View File

@ -22,6 +22,7 @@
#include "retroarch_logger.h"
#include "intl/intl.h"
#include "retroarch.h"
#include "runloop.h"
#ifdef HAVE_MENU
#include "menu/menu_common.h"

43
runloop.h Normal file
View File

@ -0,0 +1,43 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2015 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RETROARCH_RUNLOOP_H
#define __RETROARCH_RUNLOOP_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* rarch_main_iterate:
*
* Run Libretro/RetroArch for one frame.
*
* Returns: 0 if we want to indicate to the caller that
* any top-level runtime loop needs to be forcibly woken up.
*
* 1 if we have to wait until button input in order
* to wake up the loop.
*
* -1 if we forcibly quit out of the RetroArch iteration loop.
**/
int rarch_main_iterate(void);
#ifdef __cplusplus
}
#endif
#endif