mirror of
https://github.com/libretro/RetroArch
synced 2025-02-09 09:39:56 +00:00
Move structure over to system.h
This commit is contained in:
parent
8a58583c55
commit
67ffbe7cef
35
runloop.h
35
runloop.h
@ -27,6 +27,7 @@
|
|||||||
#include "movie.h"
|
#include "movie.h"
|
||||||
#include "cheats.h"
|
#include "cheats.h"
|
||||||
#include "dynamic.h"
|
#include "dynamic.h"
|
||||||
|
#include "system.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -149,39 +150,7 @@ typedef struct global
|
|||||||
unsigned windowed_scale;
|
unsigned windowed_scale;
|
||||||
} pending;
|
} pending;
|
||||||
|
|
||||||
|
rarch_system_info_t system;
|
||||||
struct
|
|
||||||
{
|
|
||||||
struct retro_system_info info;
|
|
||||||
|
|
||||||
unsigned rotation;
|
|
||||||
bool shutdown;
|
|
||||||
unsigned performance_level;
|
|
||||||
|
|
||||||
bool block_extract;
|
|
||||||
bool force_nonblock;
|
|
||||||
bool no_content;
|
|
||||||
|
|
||||||
const char *input_desc_btn[MAX_USERS][RARCH_FIRST_META_KEY];
|
|
||||||
char valid_extensions[PATH_MAX_LENGTH];
|
|
||||||
|
|
||||||
retro_keyboard_event_t key_event;
|
|
||||||
|
|
||||||
struct retro_disk_control_callback disk_control;
|
|
||||||
struct retro_camera_callback camera_callback;
|
|
||||||
struct retro_location_callback location_callback;
|
|
||||||
|
|
||||||
struct retro_frame_time_callback frame_time;
|
|
||||||
retro_usec_t frame_time_last;
|
|
||||||
|
|
||||||
core_option_manager_t *core_options;
|
|
||||||
|
|
||||||
struct retro_subsystem_info *special;
|
|
||||||
unsigned num_special;
|
|
||||||
|
|
||||||
struct retro_controller_info *ports;
|
|
||||||
unsigned num_ports;
|
|
||||||
} system;
|
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
struct
|
struct
|
||||||
|
35
system.h
35
system.h
@ -16,12 +16,47 @@
|
|||||||
#ifndef __RARCH_SYSTEM_H
|
#ifndef __RARCH_SYSTEM_H
|
||||||
#define __RARCH_SYSTEM_H
|
#define __RARCH_SYSTEM_H
|
||||||
|
|
||||||
|
#include "configuration.h"
|
||||||
|
#include "core_options.h"
|
||||||
#include "libretro.h"
|
#include "libretro.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef struct rarch_system_info
|
||||||
|
{
|
||||||
|
struct retro_system_info info;
|
||||||
|
|
||||||
|
unsigned rotation;
|
||||||
|
bool shutdown;
|
||||||
|
unsigned performance_level;
|
||||||
|
|
||||||
|
bool block_extract;
|
||||||
|
bool force_nonblock;
|
||||||
|
bool no_content;
|
||||||
|
|
||||||
|
const char *input_desc_btn[MAX_USERS][RARCH_FIRST_META_KEY];
|
||||||
|
char valid_extensions[PATH_MAX_LENGTH];
|
||||||
|
|
||||||
|
retro_keyboard_event_t key_event;
|
||||||
|
|
||||||
|
struct retro_disk_control_callback disk_control;
|
||||||
|
struct retro_camera_callback camera_callback;
|
||||||
|
struct retro_location_callback location_callback;
|
||||||
|
|
||||||
|
struct retro_frame_time_callback frame_time;
|
||||||
|
retro_usec_t frame_time_last;
|
||||||
|
|
||||||
|
core_option_manager_t *core_options;
|
||||||
|
|
||||||
|
struct retro_subsystem_info *special;
|
||||||
|
unsigned num_special;
|
||||||
|
|
||||||
|
struct retro_controller_info *ports;
|
||||||
|
unsigned num_ports;
|
||||||
|
} rarch_system_info_t;
|
||||||
|
|
||||||
struct retro_system_info *rarch_system_info_get_ptr(void);
|
struct retro_system_info *rarch_system_info_get_ptr(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user