Skip to content

Commit

Permalink
Merge system.h with core.h
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Sep 6, 2016
1 parent 48ac633 commit 82d8211
Show file tree
Hide file tree
Showing 30 changed files with 50 additions and 87 deletions.
1 change: 0 additions & 1 deletion cheevos.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "cheevos.h"
#include "command.h"
#include "dynamic.h"
#include "system.h"
#include "network/net_http_special.h"
#include "tasks/tasks_internal.h"
#include "configuration.h"
Expand Down
1 change: 0 additions & 1 deletion command.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
#include "retroarch.h"
#include "managers/cheat_manager.h"
#include "managers/state_manager.h"
#include "system.h"
#include "ui/ui_companion_driver.h"
#include "tasks/tasks_internal.h"
#include "list_special.h"
Expand Down
1 change: 0 additions & 1 deletion configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "core.h"
#include "retroarch.h"
#include "runloop.h"
#include "system.h"
#include "verbosity.h"
#include "lakka.h"

Expand Down
31 changes: 31 additions & 0 deletions core.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@

#include <boolean.h>
#include <libretro.h>

#include <retro_miscellaneous.h>
#include <retro_common_api.h>

#include "core_type.h"
#include "input/input_defines.h"

RETRO_BEGIN_DECLS

Expand All @@ -40,6 +43,34 @@ enum
POLL_TYPE_LATE
};

typedef struct rarch_system_info
{
struct retro_system_info info;

unsigned rotation;
unsigned performance_level;

const char *input_desc_btn[MAX_USERS][RARCH_FIRST_META_KEY];
char valid_extensions[PATH_MAX_LENGTH];

struct retro_disk_control_callback disk_control_cb;
struct retro_location_callback location_cb;

struct
{
struct retro_subsystem_info *data;
unsigned size;
} subsystem;

struct
{
struct retro_controller_info *data;
unsigned size;
} ports;

struct retro_memory_map mmaps;
} rarch_system_info_t;

typedef struct retro_ctx_input_state_info
{
retro_input_state_t cb;
Expand Down
1 change: 0 additions & 1 deletion core_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "msg_hash.h"
#include "managers/state_manager.h"
#include "runloop.h"
#include "system.h"
#include "verbosity.h"
#include "gfx/video_driver.h"
#include "audio/audio_driver.h"
Expand Down
1 change: 0 additions & 1 deletion driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include "command.h"
#include "msg_hash.h"
#include "system.h"

#include "audio/audio_driver.h"
#include "audio/audio_resampler_driver.h"
Expand Down
1 change: 0 additions & 1 deletion dynamic.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include "record/record_driver.h"
#include "core.h"
#include "performance_counters.h"
#include "system.h"
#include "gfx/video_context_driver.h"

#include "cores/internal_cores.h"
Expand Down
1 change: 0 additions & 1 deletion gfx/video_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include "../performance_counters.h"
#include "../list_special.h"
#include "../core.h"
#include "../system.h"
#include "../command.h"
#include "../msg_hash.h"

Expand Down
2 changes: 1 addition & 1 deletion httpserver/httpserver.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <libretro.h>
#include "system.h"
#include "core.h"
#include "runloop.h"
#include "core.h"
#include "gfx/video_driver.h"
Expand Down
2 changes: 1 addition & 1 deletion location/location_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include "location_driver.h"

#include "../configuration.h"
#include "../core.h"
#include "../driver.h"
#include "../retroarch.h"
#include "../runloop.h"
#include "../system.h"
#include "../list_special.h"
#include "../verbosity.h"

Expand Down
2 changes: 1 addition & 1 deletion menu/cbs/menu_cbs_deferred_push.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include "../../cores/internal_cores.h"

#include "../../configuration.h"
#include "../../core.h"
#include "../../core_info.h"
#include "../../runloop.h"
#include "../../system.h"
#include "../../verbosity.h"

#ifndef BIND_ACTION_DEFERRED_PUSH
Expand Down
2 changes: 1 addition & 1 deletion menu/cbs/menu_cbs_get_value.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
#include "../../input/input_autodetect.h"
#include "../../input/input_config.h"

#include "../../core.h"
#include "../../core_info.h"
#include "../../configuration.h"
#include "../../file_path_special.h"
#include "../../managers/core_option_manager.h"
#include "../../managers/cheat_manager.h"
#include "../../performance_counters.h"
#include "../../runloop.h"
#include "../../system.h"
#include "../../intl/intl.h"

#ifndef BIND_ACTION_GET_VALUE
Expand Down
2 changes: 1 addition & 1 deletion menu/cbs/menu_cbs_left.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
#include "../menu_navigation.h"

#include "../../configuration.h"
#include "../../core.h"
#include "../../core_info.h"
#include "../../managers/cheat_manager.h"
#include "../../file_path_special.h"
#include "../../retroarch.h"
#include "../../runloop.h"
#include "../../system.h"

#ifndef BIND_ACTION_LEFT
#define BIND_ACTION_LEFT(cbs, name) \
Expand Down
2 changes: 1 addition & 1 deletion menu/cbs/menu_cbs_ok.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "../menu_popup.h"
#include "../menu_content.h"

#include "../../core.h"
#include "../../configuration.h"
#include "../../core_info.h"
#include "../../frontend/frontend_driver.h"
Expand All @@ -39,7 +40,6 @@
#include "../../input/input_remapping.h"
#include "../../retroarch.h"
#include "../../runloop.h"
#include "../../system.h"
#include "../../verbosity.h"
#include "../../lakka.h"

Expand Down
2 changes: 1 addition & 1 deletion menu/cbs/menu_cbs_right.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
#include "../menu_navigation.h"

#include "../../configuration.h"
#include "../../core.h"
#include "../../core_info.h"
#include "../../managers/cheat_manager.h"
#include "../../file_path_special.h"
#include "../../retroarch.h"
#include "../../runloop.h"
#include "../../system.h"
#include "../../ui/ui_companion_driver.h"

#ifndef BIND_ACTION_RIGHT
Expand Down
2 changes: 1 addition & 1 deletion menu/cbs/menu_cbs_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
#include "../menu_shader.h"

#include "../../configuration.h"
#include "../../core.h"
#include "../../core_info.h"
#include "../../managers/core_option_manager.h"
#include "../../managers/cheat_manager.h"
#include "../../retroarch.h"
#include "../../runloop.h"
#include "../../system.h"
#include "../../performance_counters.h"

#include "../../gfx/video_shader_driver.h"
Expand Down
2 changes: 1 addition & 1 deletion menu/drivers/materialui.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
#include "../menu_display.h"

#include "../../core_info.h"
#include "../../core.h"
#include "../../configuration.h"
#include "../../frontend/frontend_driver.h"
#include "../../retroarch.h"
#include "../../system.h"
#include "../../runloop.h"
#include "../../verbosity.h"
#include "../../tasks/tasks_internal.h"
Expand Down
2 changes: 1 addition & 1 deletion menu/drivers/nuklear.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
#include "../menu_navigation.h"
#include "../menu_display.h"

#include "../../core.h"
#include "../../core_info.h"
#include "../../configuration.h"
#include "../../frontend/frontend_driver.h"
#include "../../system.h"
#include "../../runloop.h"
#include "../../verbosity.h"
#include "../../tasks/tasks_internal.h"
Expand Down
2 changes: 1 addition & 1 deletion menu/drivers/xmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
#include "../menu_cbs.h"

#include "../../frontend/frontend_driver.h"
#include "../../core.h"
#include "../../verbosity.h"
#include "../../configuration.h"
#include "../../retroarch.h"
#include "../../system.h"
#include "../../file_path_special.h"

#include "../../tasks/tasks_internal.h"
Expand Down
1 change: 0 additions & 1 deletion menu/menu_displaylist.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include "../managers/core_option_manager.h"
#include "../retroarch.h"
#include "../runloop.h"
#include "../system.h"
#include "../core.h"
#include "../frontend/frontend_driver.h"
#include "../ui/ui_companion_driver.h"
Expand Down
2 changes: 1 addition & 1 deletion menu/menu_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
#include "../content.h"
#include "../configuration.h"
#include "../dynamic.h"
#include "../core.h"
#include "../core_info.h"
#include "../retroarch.h"
#include "../system.h"
#include "../defaults.h"
#include "../frontend/frontend.h"
#include "../list_special.h"
Expand Down
2 changes: 1 addition & 1 deletion menu/menu_entries.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
#include "menu_cbs.h"
#include "menu_navigation.h"

#include "../core.h"
#include "../configuration.h"
#include "../runloop.h"
#include "../system.h"
#include "../version.h"

struct menu_list
Expand Down
2 changes: 1 addition & 1 deletion menu/menu_setting.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
#include "menu_input.h"
#include "menu_navigation.h"

#include "../core.h"
#include "../configuration.h"
#include "../msg_hash.h"
#include "../defaults.h"
#include "../driver.h"
#include "../system.h"
#include "../core.h"
#include "../dynamic.h"
#include "../runloop.h"
Expand Down
2 changes: 1 addition & 1 deletion network/netplay/netplay_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <net/net_compat.h>
#include <retro_endianness.h>

#include "../../core.h"
#include "../../msg_hash.h"
#include "../../system.h"
#include "../../verbosity.h"

#ifdef ANDROID
Expand Down
1 change: 0 additions & 1 deletion retroarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
#include "configuration.h"
#include "runloop.h"
#include "managers/cheat_manager.h"
#include "system.h"
#include "tasks/tasks_internal.h"

#include "version.h"
Expand Down
1 change: 0 additions & 1 deletion runloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#include "managers/core_option_manager.h"
#include "managers/cheat_manager.h"
#include "managers/state_manager.h"
#include "system.h"
#include "list_special.h"
#include "audio/audio_driver.h"
#include "camera/camera_driver.h"
Expand Down
58 changes: 0 additions & 58 deletions system.h

This file was deleted.

1 change: 0 additions & 1 deletion tasks/task_content.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
#include "../content.h"
#include "../dynamic.h"
#include "../patch.h"
#include "../system.h"
#include "../runloop.h"
#include "../retroarch.h"
#include "../file_path_special.h"
Expand Down
2 changes: 1 addition & 1 deletion ui/drivers/ui_cocoa.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
#include "../../input/drivers_keyboard/keyboard_event_apple.h"
#include "../../frontend/frontend.h"
#include "../../configuration.h"
#include "../../core.h"
#include "../../retroarch.h"
#include "../../runloop.h"
#include "../../system.h"
#include "../../tasks/tasks_internal.h"

id apple_platform;
Expand Down
Loading

0 comments on commit 82d8211

Please sign in to comment.