Skip to content

Commit 4c14267

Browse files
committed
Create core_type.h
1 parent 61bae58 commit 4c14267

7 files changed

+33
-9
lines changed

core_type.h

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* RetroArch - A frontend for libretro.
2+
* Copyright (C) 2011-2016 - Daniel De Matteis
3+
*
4+
* RetroArch is free software: you can redistribute it and/or modify it under the terms
5+
* of the GNU General Public License as published by the Free Software Found-
6+
* ation, either version 3 of the License, or (at your option) any later version.
7+
*
8+
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10+
* PURPOSE. See the GNU General Public License for more details.
11+
*
12+
* You should have received a copy of the GNU General Public License along with RetroArch.
13+
* If not, see <http://www.gnu.org/licenses/>.
14+
*/
15+
16+
#ifndef __CORE_TYPE_H
17+
#define __CORE_TYPE_H
18+
19+
enum rarch_core_type
20+
{
21+
CORE_TYPE_PLAIN = 0,
22+
CORE_TYPE_DUMMY,
23+
CORE_TYPE_FFMPEG,
24+
CORE_TYPE_IMAGEVIEWER
25+
};
26+
27+
#endif

dynamic.c

+2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
#include "config.h"
3030
#endif
3131

32+
#include "dynamic.h"
3233
#include "command_event.h"
34+
3335
#include "audio/audio_driver.h"
3436
#include "camera/camera_driver.h"
3537
#include "location/location_driver.h"

dynamic.h

+1-8
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,13 @@
1919

2020
#include <boolean.h>
2121

22+
#include "core_type.h"
2223
#include "libretro.h"
2324

2425
#ifdef HAVE_CONFIG_H
2526
#include "config.h"
2627
#endif
2728

28-
enum rarch_core_type
29-
{
30-
CORE_TYPE_PLAIN = 0,
31-
CORE_TYPE_DUMMY,
32-
CORE_TYPE_FFMPEG,
33-
CORE_TYPE_IMAGEVIEWER
34-
};
35-
3629
#ifdef __cplusplus
3730
extern "C" {
3831
#endif

libretro_version_1.c

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <boolean.h>
2626
#include <lists/string_list.h>
2727

28+
#include "dynamic.h"
2829
#include "libretro.h"
2930
#include "libretro_version_1.h"
3031
#include "general.h"

retroarch.c

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include <retro_assert.h>
4646

4747
#include "content.h"
48+
#include "core_type.h"
4849
#include "core_info.h"
4950
#include "msg_hash.h"
5051
#include "movie.h"

runloop.h

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <retro_miscellaneous.h>
2020

2121
#include "configuration.h"
22-
#include "dynamic.h"
2322

2423
#ifdef __cplusplus
2524
extern "C" {

tasks/tasks_internal.h

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#include <queues/task_queue.h>
2323

24+
#include "../core_type.h"
2425
#include "../runloop.h"
2526

2627
#ifdef __cplusplus

0 commit comments

Comments
 (0)