mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Create runloop.h
This commit is contained in:
parent
357555e1cd
commit
76c392718f
@ -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)
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "../../apple/common/CFExtensions.h"
|
||||
|
||||
#include "../frontend.h"
|
||||
#include "../runloop.h"
|
||||
#include "../../menu/disp/ios.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
15
general.h
15
general.h
@ -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);
|
||||
|
||||
|
@ -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
43
runloop.h
Normal 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
|
Loading…
Reference in New Issue
Block a user