This commit is contained in:
twinaphex 2016-02-04 20:56:22 +01:00
parent 958860dea7
commit 878c4e3833
8 changed files with 36 additions and 12 deletions

View File

@ -17,12 +17,13 @@
#ifndef __RARCH_FILE_H #ifndef __RARCH_FILE_H
#define __RARCH_FILE_H #define __RARCH_FILE_H
#include <boolean.h>
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include <sys/types.h> #include <sys/types.h>
#include <boolean.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -17,11 +17,13 @@
#ifndef CORE_OPTIONS_H__ #ifndef CORE_OPTIONS_H__
#define CORE_OPTIONS_H__ #define CORE_OPTIONS_H__
#include <boolean.h>
#include "libretro.h"
#include <stddef.h> #include <stddef.h>
#include <boolean.h>
#include <string/string_list.h> #include <string/string_list.h>
#include "libretro.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -20,8 +20,10 @@
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include <boolean.h> #include <boolean.h>
#include <file/file_archive.h> #include <file/file_archive.h>
#include "libretro-db/libretrodb.h" #include "libretro-db/libretrodb.h"
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -18,6 +18,7 @@
#define __DYNAMIC_H #define __DYNAMIC_H
#include <boolean.h> #include <boolean.h>
#include "libretro.h" #include "libretro.h"
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H

View File

@ -29,10 +29,13 @@ extern "C" {
enum enum
{ {
/* Polling is performed before call to retro_run */ /* Polling is performed before
* call to retro_run. */
POLL_TYPE_EARLY = 0, POLL_TYPE_EARLY = 0,
/* Polling is performed when requested. */ /* Polling is performed when requested. */
POLL_TYPE_NORMAL, POLL_TYPE_NORMAL,
/* Polling is performed on first call to /* Polling is performed on first call to
* retro_input_state per frame. */ * retro_input_state per frame. */
POLL_TYPE_LATE POLL_TYPE_LATE

11
movie.h
View File

@ -23,14 +23,15 @@ extern "C" {
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include <boolean.h> #include <boolean.h>
#define BSV_MAGIC 0x42535631 #define BSV_MAGIC 0x42535631
#define MAGIC_INDEX 0 #define MAGIC_INDEX 0
#define SERIALIZER_INDEX 1 #define SERIALIZER_INDEX 1
#define CRC_INDEX 2 #define CRC_INDEX 2
#define STATE_SIZE_INDEX 3 #define STATE_SIZE_INDEX 3
typedef struct bsv_movie bsv_movie_t; typedef struct bsv_movie bsv_movie_t;

View File

@ -27,6 +27,7 @@ enum
NET_HTTP_GET_TIMEOUT NET_HTTP_GET_TIMEOUT
}; };
int net_http_get(const char **result, size_t *size, const char *url, retro_time_t *timeout); int net_http_get(const char **result, size_t *size,
const char *url, retro_time_t *timeout);
#endif #endif

View File

@ -81,23 +81,35 @@ enum runloop_ctl_state
RUNLOOP_CTL_FRONTEND_KEY_EVENT_GET, RUNLOOP_CTL_FRONTEND_KEY_EVENT_GET,
RUNLOOP_CTL_KEY_EVENT_GET, RUNLOOP_CTL_KEY_EVENT_GET,
RUNLOOP_CTL_DATA_DEINIT, RUNLOOP_CTL_DATA_DEINIT,
/* Checks for state changes in this frame. */ /* Checks for state changes in this frame. */
RUNLOOP_CTL_CHECK_STATE, RUNLOOP_CTL_CHECK_STATE,
RUNLOOP_CTL_CHECK_MOVIE, RUNLOOP_CTL_CHECK_MOVIE,
/* Checks if movie is being played. */ /* Checks if movie is being played. */
RUNLOOP_CTL_CHECK_MOVIE_PLAYBACK, RUNLOOP_CTL_CHECK_MOVIE_PLAYBACK,
RUNLOOP_CTL_CHECK_MOVIE_INIT, RUNLOOP_CTL_CHECK_MOVIE_INIT,
/* Checks if movie is being recorded. */ /* Checks if movie is being recorded. */
RUNLOOP_CTL_CHECK_MOVIE_RECORD, RUNLOOP_CTL_CHECK_MOVIE_RECORD,
/* Checks if slowmotion toggle/hold was being pressed and/or held. */
/* Checks if slowmotion toggle/hold
* was being pressed and/or held. */
RUNLOOP_CTL_CHECK_SLOWMOTION, RUNLOOP_CTL_CHECK_SLOWMOTION,
RUNLOOP_CTL_CHECK_PAUSE_STATE, RUNLOOP_CTL_CHECK_PAUSE_STATE,
/* Initializes message queue. */ /* Initializes message queue. */
RUNLOOP_CTL_MSG_QUEUE_INIT, RUNLOOP_CTL_MSG_QUEUE_INIT,
/* Deinitializes message queue. */ /* Deinitializes message queue. */
RUNLOOP_CTL_MSG_QUEUE_DEINIT, RUNLOOP_CTL_MSG_QUEUE_DEINIT,
/* Initializes dummy core. */ /* Initializes dummy core. */
RUNLOOP_CTL_MSG_QUEUE_LOCK, RUNLOOP_CTL_MSG_QUEUE_LOCK,
RUNLOOP_CTL_MSG_QUEUE_UNLOCK, RUNLOOP_CTL_MSG_QUEUE_UNLOCK,
RUNLOOP_CTL_MSG_QUEUE_FREE, RUNLOOP_CTL_MSG_QUEUE_FREE,
RUNLOOP_CTL_MSG_QUEUE_PULL, RUNLOOP_CTL_MSG_QUEUE_PULL,
@ -303,7 +315,8 @@ global_t *global_get_ptr(void);
* Returns: 0 on successful run, * Returns: 0 on successful run,
* Returns 1 if we have to wait until button input in order * Returns 1 if we have to wait until button input in order
* to wake up the loop. * to wake up the loop.
* Returns -1 if we forcibly quit out of the RetroArch iteration loop. * Returns -1 if we forcibly quit out of the
* RetroArch iteration loop.
**/ **/
int runloop_iterate(unsigned *sleep_ms); int runloop_iterate(unsigned *sleep_ms);