RetroArch/griffin/griffin.c

880 lines
24 KiB
C
Raw Normal View History

2012-04-21 21:13:50 +00:00
/* RetroArch - A frontend for libretro.
2014-01-01 00:50:59 +00:00
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
2015-01-07 16:46:50 +00:00
* Copyright (C) 2011-2015 - Daniel De Matteis
2012-04-13 23:02:37 +00:00
*
2012-04-21 21:13:50 +00:00
* RetroArch is free software: you can redistribute it and/or modify it under the terms
2012-04-13 23:02:37 +00:00
* 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.
*
2012-04-21 21:13:50 +00:00
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
2012-04-13 23:02:37 +00:00
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
2012-04-21 21:31:57 +00:00
* You should have received a copy of the GNU General Public License along with RetroArch.
2012-04-13 23:02:37 +00:00
* If not, see <http://www.gnu.org/licenses/>.
*/
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL)
#define HAVE_SHADERS
#endif
#if defined(HAVE_ZLIB) || defined(HAVE_7ZIP)
#define HAVE_COMPRESSION
#endif
#if defined(_MSC_VER)
2014-10-21 06:02:40 +00:00
#include <compat/posix_string.h>
2012-04-13 23:02:37 +00:00
#endif
/*============================================================
CONSOLE EXTENSIONS
============================================================ */
#ifdef RARCH_CONSOLE
#if defined(HAVE_LOGGER) && defined(__PSL1GHT__)
2014-06-01 14:09:12 +00:00
#include "../logger/netlogger/psl1ght_logger.c"
2012-12-16 03:13:31 +00:00
#elif defined(HAVE_LOGGER) && !defined(ANDROID)
2014-06-01 14:09:12 +00:00
#include "../logger/netlogger/logger.c"
#endif
#ifdef HW_DOL
#include "../ngc/ssaram.c"
#endif
#endif
2012-04-13 23:02:37 +00:00
#ifdef HAVE_ZLIB
#include "../libretro-common/file/file_extract.c"
#include "../decompress/zip_support.c"
2012-11-03 07:42:33 +00:00
#endif
/*============================================================
PERFORMANCE
============================================================ */
#ifdef ANDROID
#include "../performance/performance_android.c"
2012-11-03 07:42:33 +00:00
#endif
#include "../performance.c"
2012-11-03 07:42:33 +00:00
2012-04-13 23:02:37 +00:00
/*============================================================
COMPATIBILITY
============================================================ */
#include "../compat/compat.c"
#include "../libretro-common/compat/compat_fnmatch.c"
2012-04-13 23:02:37 +00:00
/*============================================================
CONFIG FILE
============================================================ */
#if defined(_MSC_VER)
2014-10-21 04:55:26 +00:00
#undef __LIBRETRO_SDK_COMPAT_POSIX_STRING_H
#undef __LIBRETRO_SDK_COMPAT_MSVC_H
2012-04-13 23:02:37 +00:00
#undef strcasecmp
#endif
#include "../libretro-common/file/config_file.c"
#include "../libretro-common/file/config_file_userdata.c"
2013-04-04 12:15:13 +00:00
#include "../core_options.c"
/*============================================================
CHEATS
============================================================ */
#include "../cheats.c"
#include "../libretro-common/hash/rhash.c"
/*============================================================
UI COMMON CONTEXT
============================================================ */
2015-04-09 03:19:29 +00:00
#if defined(_WIN32)
2015-04-09 03:16:02 +00:00
#include "../gfx/common/win32_common.c"
2015-04-09 03:19:29 +00:00
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
2012-05-28 03:19:04 +00:00
VIDEO CONTEXT
2012-04-13 23:02:37 +00:00
============================================================ */
2012-05-27 02:02:07 +00:00
#include "../gfx/video_context_driver.c"
2015-01-12 21:19:31 +00:00
#include "../gfx/drivers_context/gfx_null_ctx.c"
2012-05-27 23:15:00 +00:00
#if defined(__CELLOS_LV2__)
2015-01-12 21:19:31 +00:00
#include "../gfx/drivers_context/ps3_ctx.c"
2012-11-03 07:42:33 +00:00
#elif defined(ANDROID)
2015-01-12 21:19:31 +00:00
#include "../gfx/drivers_context/androidegl_ctx.c"
#elif defined(__QNX__)
2015-01-12 21:19:31 +00:00
#include "../gfx/drivers_context/bbqnx_ctx.c"
#elif defined(EMSCRIPTEN)
2015-01-12 21:19:31 +00:00
#include "../gfx/drivers_context/emscriptenegl_ctx.c"
2015-04-26 01:59:55 +00:00
#elif defined(__APPLE__) && !defined(TARGET_IPHONE_SIMULATOR) && !defined(TARGET_OS_IPHONE)
2015-04-26 01:48:35 +00:00
#include "../gfx/drivers_context/cgl_ctx.c"
2012-05-27 20:58:14 +00:00
#endif
2013-07-28 17:55:18 +00:00
#if defined(HAVE_OPENGL)
#if defined(HAVE_KMS)
2015-01-12 21:19:31 +00:00
#include "../gfx/drivers_context/drm_egl_ctx.c"
#endif
#if defined(HAVE_VIDEOCORE)
2015-01-12 21:19:31 +00:00
#include "../gfx/drivers_context/vc_egl_ctx.c"
2012-05-27 20:58:14 +00:00
#endif
#if defined(_WIN32) && !defined(_XBOX)
2015-01-12 21:19:31 +00:00
#include "../gfx/drivers_context/wgl_ctx.c"
#include "../gfx/drivers_wm/win32_shader_dlg.c"
#endif
#endif
2015-04-16 20:39:28 +00:00
#if defined(HAVE_X11)
2015-04-09 03:02:57 +00:00
#include "../gfx/common/x11_common.c"
2015-04-16 20:39:28 +00:00
#ifndef HAVE_OPENGLES
#include "../gfx/drivers_context/glx_ctx.c"
#endif
#ifdef HAVE_EGL
#include "../gfx/drivers_context/xegl_ctx.c"
#endif
#endif
2012-05-27 20:58:14 +00:00
2012-05-28 03:19:04 +00:00
/*============================================================
VIDEO SHADERS
============================================================ */
2014-10-02 11:27:35 +00:00
#ifdef HAVE_SHADERS
#include "../gfx/video_shader_driver.c"
#include "../gfx/video_shader_parse.c"
#include "../gfx/drivers_shader/shader_null.c"
2012-05-27 20:58:14 +00:00
#ifdef HAVE_CG
2014-10-02 13:19:21 +00:00
#ifdef HAVE_OPENGL
#include "../gfx/drivers_shader/shader_gl_cg.c"
2014-10-02 13:19:21 +00:00
#endif
#endif
2012-05-27 22:37:54 +00:00
#ifdef HAVE_HLSL
#include "../gfx/drivers_shader/shader_hlsl.c"
2012-05-27 22:37:54 +00:00
#endif
2012-07-01 20:46:25 +00:00
#ifdef HAVE_GLSL
#include "../gfx/drivers_shader/shader_glsl.c"
2012-07-01 20:46:25 +00:00
#endif
#endif
2012-05-28 03:19:04 +00:00
/*============================================================
VIDEO IMAGE
============================================================ */
2015-02-22 00:28:54 +00:00
#include "../gfx/image/image.c"
#include "../gfx/video_texture.c"
2015-02-22 03:56:18 +00:00
#include "../libretro-common/formats/tga/tga_decode.c"
2015-04-19 14:55:03 +00:00
2015-06-28 16:55:00 +00:00
#ifdef HAVE_IMAGEVIEWER
2015-06-28 13:50:36 +00:00
#include "../cores/image_core.c"
2015-06-28 16:55:00 +00:00
#endif
2015-04-19 14:55:03 +00:00
#ifdef HAVE_RPNG
2015-03-13 23:52:55 +00:00
#include "../libretro-common/formats/png/rpng_fbio.c"
#include "../libretro-common/formats/png/rpng_nbio.c"
#include "../libretro-common/formats/png/rpng_decode.c"
2015-02-20 22:38:48 +00:00
#include "../libretro-common/formats/png/rpng_encode.c"
2015-04-19 14:55:03 +00:00
#endif
2012-05-28 03:19:04 +00:00
/*============================================================
VIDEO DRIVER
============================================================ */
2015-04-23 00:26:09 +00:00
#if defined(GEKKO)
#ifdef HW_RVL
#include "../wii/vi_encoder.c"
#include "../wii/mem2_manager.c"
#endif
2012-04-14 11:42:25 +00:00
#endif
#ifdef HAVE_VG
#include "../gfx/drivers/vg.c"
#include "../libretro-common/gfx/math/matrix_3x3.c"
#endif
#ifdef HAVE_OMAP
#include "../gfx/drivers/omap_gfx.c"
#endif
2013-01-10 02:34:43 +00:00
#ifdef HAVE_OPENGL
2015-04-23 00:26:09 +00:00
#include "../libretro-common/gfx/math/matrix_4x4.c"
#include "../gfx/drivers/gl.c"
2015-04-09 02:57:17 +00:00
#include "../gfx/drivers/gl_common.c"
2013-08-11 13:06:42 +00:00
2013-08-11 13:10:56 +00:00
#ifndef HAVE_PSGL
#include "../libretro-common/glsym/rglgen.c"
2013-07-05 17:29:48 +00:00
#ifdef HAVE_OPENGLES2
#include "../libretro-common/glsym/glsym_es2.c"
2013-07-05 17:29:48 +00:00
#else
#include "../libretro-common/glsym/glsym_gl.c"
2013-07-05 17:29:48 +00:00
#endif
2013-01-10 02:34:43 +00:00
#endif
2013-08-11 13:06:42 +00:00
#endif
#ifdef HAVE_XVIDEO
#include "../gfx/drivers/xvideo.c"
#endif
#if defined(HAVE_D3D)
2015-04-07 20:28:05 +00:00
#include "../gfx/d3d/render_chain_driver.c"
#include "../gfx/d3d/render_chain_null.c"
2013-01-10 02:34:43 +00:00
#endif
#if defined(GEKKO)
2015-01-12 05:55:31 +00:00
#include "../gfx/drivers/gx_gfx.c"
2013-07-27 18:47:00 +00:00
#elif defined(PSP)
2015-01-12 05:55:31 +00:00
#include "../gfx/drivers/psp1_gfx.c"
2015-04-01 21:14:13 +00:00
#elif defined(_3DS)
#include "../gfx/drivers/ctr_gfx.c"
#elif defined(XENON)
#include "../gfx/drivers/xenon360_gfx.c"
2013-01-09 04:57:02 +00:00
#endif
#include "../gfx/drivers/nullgfx.c"
2012-05-27 02:02:07 +00:00
/*============================================================
FONTS
============================================================ */
2015-01-12 22:34:10 +00:00
#include "../gfx/font_renderer_driver.c"
#include "../gfx/drivers_font_renderer/bitmapfont.c"
#include "../gfx/font_driver.c"
#if defined(HAVE_FREETYPE)
2015-01-12 22:34:10 +00:00
#include "../gfx/drivers_font_renderer/freetype.c"
#endif
2015-04-19 14:18:58 +00:00
#if defined(__APPLE__) && defined(HAVE_CORETEXT)
2015-01-12 22:34:10 +00:00
#include "../gfx/drivers_font_renderer/coretext.c"
#endif
#if defined(HAVE_LIBDBGFONT)
2015-01-12 22:38:21 +00:00
#include "../gfx/drivers_font/ps_libdbgfont.c"
2014-09-25 04:56:23 +00:00
#endif
2015-04-23 00:04:32 +00:00
#if defined(HAVE_OPENGL)
2015-01-12 22:38:21 +00:00
#include "../gfx/drivers_font/gl_raster_font.c"
2014-09-25 04:56:23 +00:00
#endif
#if defined(_XBOX1)
2015-01-12 22:38:21 +00:00
#include "../gfx/drivers_font/xdk1_xfonts.c"
2012-04-13 23:02:37 +00:00
#endif
2014-09-25 04:56:23 +00:00
#if defined(_XBOX360)
2015-04-02 23:58:52 +00:00
#include "../gfx/drivers_font/xdk360_fonts.c"
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
INPUT
============================================================ */
#include "../input/input_autodetect.c"
#include "../input/input_joypad_driver.c"
#include "../input/input_joypad.c"
#include "../input/input_hid_driver.c"
#include "../input/input_common.c"
#include "../input/input_keymaps.c"
2015-01-19 17:16:34 +00:00
#include "../input/input_remapping.c"
2015-01-18 18:28:51 +00:00
#include "../input/input_sensor.c"
2013-12-10 18:42:42 +00:00
#include "../input/keyboard_line.c"
#ifdef HAVE_OVERLAY
#include "../input/input_overlay.c"
#include "../tasks/task_overlay.c"
#endif
#if defined(__CELLOS_LV2__)
2015-01-12 05:16:52 +00:00
#include "../input/drivers/ps3_input.c"
#include "../input/drivers_joypad/ps3_joypad.c"
#include "../input/autoconf/builtin_ps3.c"
#elif defined(SN_TARGET_PSP2) || defined(PSP)
2015-01-12 05:16:52 +00:00
#include "../input/drivers/psp_input.c"
#include "../input/drivers_joypad/psp_joypad.c"
2014-06-09 16:57:17 +00:00
#include "../input/autoconf/builtin_psp.c"
2015-04-01 21:14:13 +00:00
#elif defined(_3DS)
#include "../input/drivers/ctr_input.c"
#include "../input/drivers_joypad/ctr_joypad.c"
2015-04-01 21:14:13 +00:00
#include "../input/autoconf/builtin_ctr.c"
2012-04-14 11:42:25 +00:00
#elif defined(GEKKO)
#ifdef HAVE_LIBSICKSAXIS
#include "../input/drivers_joypad/gx_sicksaxis.c"
#endif
2015-01-12 05:16:52 +00:00
#include "../input/drivers/gx_input.c"
#include "../input/drivers_joypad/gx_joypad.c"
2014-06-09 19:56:22 +00:00
#include "../input/autoconf/builtin_gx.c"
#elif defined(_XBOX)
2015-01-12 05:16:52 +00:00
#include "../input/drivers/xdk_xinput_input.c"
#include "../input/drivers_joypad/xdk_joypad.c"
2014-06-09 16:17:37 +00:00
#include "../input/autoconf/builtin_xdk.c"
#elif defined(_WIN32)
#include "../input/autoconf/builtin_win.c"
#elif defined(XENON)
2015-01-12 05:16:52 +00:00
#include "../input/drivers/xenon360_input.c"
2012-11-03 07:42:33 +00:00
#elif defined(ANDROID)
2015-01-12 05:16:52 +00:00
#include "../input/drivers/android_input.c"
#include "../input/drivers_joypad/android_joypad.c"
#elif defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
#include "../input/drivers/cocoa_input.c"
#elif defined(__QNX__)
2015-01-12 05:16:52 +00:00
#include "../input/drivers/qnx_input.c"
#include "../input/drivers_joypad/qnx_joypad.c"
#elif defined(EMSCRIPTEN)
2015-01-12 05:16:52 +00:00
#include "../input/drivers/rwebinput_input.c"
2013-01-09 04:57:02 +00:00
#endif
#ifdef HAVE_DINPUT
2015-01-12 05:16:52 +00:00
#include "../input/drivers/dinput.c"
#include "../input/drivers_joypad/dinput_joypad.c"
#endif
#ifdef HAVE_XINPUT
#include "../input/drivers_joypad/xinput_joypad.c"
#endif
2015-04-01 21:14:13 +00:00
#if defined(__linux__) && !defined(ANDROID)
2015-01-12 05:16:52 +00:00
#include "../input/drivers/linuxraw_input.c"
#include "../input/drivers_joypad/linuxraw_joypad.c"
#endif
#ifdef HAVE_X11
2015-01-12 05:16:52 +00:00
#include "../input/drivers/x11_input.c"
#endif
#ifdef HAVE_UDEV
2015-01-12 05:16:52 +00:00
#include "../input/drivers/udev_input.c"
#include "../input/drivers_joypad/udev_joypad.c"
#endif
2015-01-12 05:16:52 +00:00
#include "../input/drivers/nullinput.c"
2015-04-02 16:44:02 +00:00
#include "../input/drivers_joypad/null_joypad.c"
/*============================================================
INPUT (HID)
============================================================ */
#include "../input/drivers_joypad/hid_joypad.c"
#include "../input/drivers_hid/null_hid.c"
#if defined(HAVE_LIBUSB)
#include "../input/drivers_hid/libusb_hid.c"
2015-04-07 04:57:05 +00:00
#endif
#if defined(__APPLE__) && defined(IOS)
2015-04-04 03:23:26 +00:00
#include "../input/drivers_hid/btstack_hid.c"
2015-04-19 13:59:20 +00:00
#elif defined(__APPLE__) && defined(HAVE_IOHIDMANAGER)
#include "../input/drivers_hid/iohidmanager_hid.c"
#endif
#ifdef HAVE_HID
#include "../input/connect/joypad_connection.c"
#include "../input/connect/connect_ps3.c"
#include "../input/connect/connect_ps4.c"
#include "../input/connect/connect_wii.c"
#endif
/*============================================================
KEYBOARD EVENT
============================================================ */
#if defined(_WIN32) && !defined(_XBOX)
#include "../input/drivers_keyboard/keyboard_event_win32.c"
#endif
#ifdef HAVE_X11
#include "../input/drivers_keyboard/keyboard_event_x11.c"
#endif
#ifdef __APPLE__
#include "../input/drivers_keyboard/keyboard_event_apple.c"
#endif
#ifdef HAVE_XKBCOMMON
#include "../input/drivers_keyboard/keyboard_event_xkb.c"
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
2012-05-28 03:19:04 +00:00
STATE TRACKER
2012-04-13 23:02:37 +00:00
============================================================ */
2015-01-12 15:00:13 +00:00
#include "../gfx/video_state_tracker.c"
2012-04-13 23:02:37 +00:00
#ifdef HAVE_PYTHON
2015-01-12 15:00:13 +00:00
#include "../gfx/video_state_python.c"
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
FIFO BUFFER
============================================================ */
#include "../libretro-common/queues/fifo_buffer.c"
2012-04-13 23:02:37 +00:00
/*============================================================
2013-02-08 10:49:51 +00:00
AUDIO RESAMPLER
2012-04-13 23:02:37 +00:00
============================================================ */
2015-01-12 21:11:13 +00:00
#include "../audio/audio_resampler_driver.c"
#include "../audio/drivers_resampler/sinc.c"
#include "../audio/drivers_resampler/nearest.c"
#include "../audio/drivers_resampler/cc_resampler.c"
2012-04-13 23:02:37 +00:00
2013-11-17 18:47:37 +00:00
/*============================================================
CAMERA
============================================================ */
#if defined(ANDROID)
2015-01-12 18:04:12 +00:00
#include "../camera/drivers/android.c"
2013-11-17 18:47:37 +00:00
#elif defined(EMSCRIPTEN)
2015-01-12 18:04:12 +00:00
#include "../camera/drivers/rwebcam.c"
2013-11-17 18:47:37 +00:00
#endif
#ifdef HAVE_V4L2
2015-01-12 18:04:12 +00:00
#include "../camera/drivers/video4linux2.c"
2013-11-17 18:47:37 +00:00
#endif
2015-01-12 18:04:12 +00:00
#include "../camera/drivers/nullcamera.c"
2013-11-17 18:47:37 +00:00
/*============================================================
LOCATION
============================================================ */
#if defined(ANDROID)
#include "../location/drivers/android.c"
#endif
#include "../location/drivers/nulllocation.c"
2012-04-13 23:02:37 +00:00
/*============================================================
RSOUND
============================================================ */
#ifdef HAVE_RSOUND
#include "../audio/librsound.c"
2015-01-12 21:28:59 +00:00
#include "../audio/drivers/rsound.c"
2012-04-13 23:02:37 +00:00
#endif
/*============================================================
AUDIO
============================================================ */
#if defined(__CELLOS_LV2__)
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/ps3_audio.c"
#elif defined(XENON)
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/xenon360_audio.c"
2012-04-14 11:42:25 +00:00
#elif defined(GEKKO)
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/gx_audio.c"
#elif defined(EMSCRIPTEN)
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/rwebaudio.c"
2014-02-17 13:26:03 +00:00
#elif defined(PSP)
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/psp1_audio.c"
2015-04-01 21:14:13 +00:00
#elif defined(_3DS)
#include "../audio/drivers/ctr_audio.c"
#endif
#ifdef HAVE_DSOUND
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/dsound.c"
#endif
#ifdef HAVE_SL
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/opensl.c"
2013-01-09 04:57:02 +00:00
#endif
#ifdef HAVE_ALSA
#ifdef __QNX__
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/alsa_qsa.c"
#else
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/alsa.c"
#include "../audio/drivers/alsathread.c"
#endif
#endif
#ifdef HAVE_AL
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/openal.c"
#endif
#ifdef HAVE_COREAUDIO
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/coreaudio.c"
#endif
2015-01-12 04:05:56 +00:00
#include "../audio/drivers/nullaudio.c"
2012-07-08 16:30:19 +00:00
/*============================================================
DRIVERS
============================================================ */
2015-01-12 17:28:32 +00:00
#include "../gfx/video_driver.c"
#include "../gfx/video_pixel_converter.c"
2015-01-18 22:59:57 +00:00
#include "../gfx/video_viewport.c"
2015-01-12 17:39:27 +00:00
#include "../input/input_driver.c"
2015-01-12 17:09:31 +00:00
#include "../audio/audio_driver.c"
2015-01-12 18:44:29 +00:00
#include "../camera/camera_driver.c"
2015-01-12 18:53:10 +00:00
#include "../location/location_driver.c"
2015-01-12 19:02:39 +00:00
#include "../menu/menu_driver.c"
#include "../driver.c"
/*============================================================
SCALERS
============================================================ */
#include "../libretro-common/gfx/scaler/scaler_filter.c"
#include "../libretro-common/gfx/scaler/pixconv.c"
#include "../libretro-common/gfx/scaler/scaler.c"
#include "../libretro-common/gfx/scaler/scaler_int.c"
/*============================================================
FILTERS
============================================================ */
#ifdef HAVE_FILTERS_BUILTIN
#include "../gfx/video_filters/2xsai.c"
#include "../gfx/video_filters/super2xsai.c"
#include "../gfx/video_filters/supereagle.c"
#include "../gfx/video_filters/2xbr.c"
#include "../gfx/video_filters/darken.c"
#include "../gfx/video_filters/epx.c"
#include "../gfx/video_filters/scale2x.c"
#include "../gfx/video_filters/blargg_ntsc_snes.c"
#include "../gfx/video_filters/lq2x.c"
#include "../gfx/video_filters/phosphor2x.c"
#include "../audio/audio_filters/echo.c"
#include "../audio/audio_filters/eq.c"
#include "../audio/audio_filters/chorus.c"
#include "../audio/audio_filters/iir.c"
#include "../audio/audio_filters/panning.c"
#include "../audio/audio_filters/phaser.c"
#include "../audio/audio_filters/reverb.c"
#include "../audio/audio_filters/wahwah.c"
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
DYNAMIC
============================================================ */
2015-05-08 07:49:49 +00:00
#include "../libretro-common/dynamic/dylib.c"
#include "../dynamic.c"
2014-11-20 06:03:25 +00:00
#include "../gfx/video_filter.c"
#include "../audio/audio_dsp_filter.c"
2015-06-20 22:37:19 +00:00
/*============================================================
CORES
============================================================ */
#ifdef HAVE_FFMPEG
#include "../cores/ffmpeg_core.c"
#endif
#include "../cores/dynamic_dummy.c"
2012-04-13 23:02:37 +00:00
/*============================================================
FILE
============================================================ */
#include "../content.c"
#include "../libretro-common/file/file_path.c"
#include "../file_path_special.c"
#include "../libretro-common/file/dir_list.c"
2015-05-24 02:19:32 +00:00
#include "../dir_list_special.c"
#include "../libretro-common/string/string_list.c"
2015-03-13 14:43:52 +00:00
#include "../libretro-common/string/stdstring.c"
2014-10-21 21:53:09 +00:00
#include "../file_ops.c"
#include "../libretro-common/file/nbio/nbio_stdio.c"
#include "../libretro-common/file/file_list.c"
2012-04-13 23:02:37 +00:00
/*============================================================
MESSAGE
============================================================ */
#include "../libretro-common/queues/message_queue.c"
2012-04-13 23:02:37 +00:00
/*============================================================
PATCH
============================================================ */
#include "../patch.c"
2012-04-13 23:02:37 +00:00
/*============================================================
2015-03-20 23:42:09 +00:00
CONFIGURATION
2012-04-13 23:02:37 +00:00
============================================================ */
2015-03-20 23:42:09 +00:00
#include "../configuration.c"
2012-04-13 23:02:37 +00:00
/*============================================================
REWIND
============================================================ */
#include "../rewind.c"
2012-04-13 23:02:37 +00:00
2013-07-27 10:59:23 +00:00
/*============================================================
FRONTEND
============================================================ */
#include "../frontend/frontend_driver.c"
2015-04-07 19:51:57 +00:00
#if defined(_WIN32) && !defined(_XBOX)
#include "../frontend/drivers/platform_win32.c"
#endif
2013-07-27 10:59:23 +00:00
#if defined(__CELLOS_LV2__)
#include "../frontend/drivers/platform_ps3.c"
2013-07-27 10:59:23 +00:00
#elif defined(GEKKO)
#include "../frontend/drivers/platform_gx.c"
#ifdef HW_RVL
#include "../frontend/drivers/platform_wii.c"
#endif
2013-07-27 10:59:23 +00:00
#elif defined(_XBOX)
#include "../frontend/drivers/platform_xdk.c"
2013-07-27 10:59:23 +00:00
#elif defined(PSP)
#include "../frontend/drivers/platform_psp.c"
2015-04-01 21:14:13 +00:00
#elif defined(_3DS)
#include "../frontend/drivers/platform_ctr.c"
2013-07-27 15:16:46 +00:00
#elif defined(__QNX__)
#include "../frontend/drivers/platform_qnx.c"
2013-11-03 15:38:56 +00:00
#elif defined(ANDROID)
#include "../frontend/drivers/platform_android.c"
#elif defined(__linux__) && !defined(ANDROID)
#include "../frontend/drivers/platform_linux.c"
2013-07-27 10:59:23 +00:00
#endif
#include "../frontend/drivers/platform_null.c"
2013-07-27 10:59:23 +00:00
2014-08-02 12:04:43 +00:00
#include "../core_info.c"
2014-03-01 10:53:04 +00:00
/*============================================================
UI
============================================================ */
#include "../ui/ui_companion_driver.c"
#include "../ui/drivers/ui_null.c"
2015-04-13 08:47:02 +00:00
#ifdef HAVE_QT
#include "../ui/drivers/ui_qt.c"
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
MAIN
============================================================ */
2013-01-08 05:26:02 +00:00
#if defined(XENON)
#include "../frontend/frontend_xenon.c"
#else
#include "../frontend/frontend.c"
#endif
2013-02-25 06:29:09 +00:00
2015-04-16 18:23:06 +00:00
/*============================================================
GIT
============================================================ */
#ifdef HAVE_GIT_VERSION
#include "../git_version.c"
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
2012-04-22 00:06:34 +00:00
RETROARCH
2012-04-13 23:02:37 +00:00
============================================================ */
#include "../libretro_version_1.c"
#include "../retroarch.c"
2015-05-13 11:21:43 +00:00
#include "../retroarch_info.c"
#include "../runloop.c"
#include "../runloop_data.c"
2015-06-30 23:19:14 +00:00
#include "../runloop_msg.c"
2015-06-25 12:25:21 +00:00
#include "../system.c"
2012-04-13 23:02:37 +00:00
2015-06-20 22:37:19 +00:00
/*============================================================
RECORDING
============================================================ */
2014-08-13 06:07:30 +00:00
#include "../movie.c"
2015-01-12 20:55:41 +00:00
#include "../record/record_driver.c"
2015-04-15 11:37:38 +00:00
#include "../record/drivers/record_null.c"
2015-06-20 22:37:19 +00:00
#ifdef HAVE_FFMPEG
#include "../record/drivers/record_ffmpeg.c"
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
THREAD
============================================================ */
#if defined(HAVE_THREADS) && defined(XENON)
#include "../thread/xenon_sdl_threads.c"
2013-02-16 11:30:26 +00:00
#elif defined(HAVE_THREADS)
#include "../libretro-common/rthreads/rthreads.c"
2013-12-31 21:10:58 +00:00
#include "../gfx/video_thread_wrapper.c"
2014-10-01 21:27:52 +00:00
#include "../audio/audio_thread_wrapper.c"
#include "../autosave.c"
2012-04-14 12:08:00 +00:00
#endif
2012-04-13 23:02:37 +00:00
2013-02-16 11:30:26 +00:00
2012-04-13 23:02:37 +00:00
/*============================================================
NETPLAY
============================================================ */
2012-05-28 03:19:04 +00:00
#ifdef HAVE_NETPLAY
#include "../netplay.c"
#include "../libretro-common/net/net_compat.c"
#include "../libretro-common/net/net_http.c"
2015-05-05 15:36:58 +00:00
#include "../tasks/task_http.c"
2012-04-14 12:08:00 +00:00
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
DATA RUNLOOP
============================================================ */
#include "../tasks/task_file_transfer.c"
#ifdef HAVE_LIBRETRODB
#include "../tasks/task_database.c"
#endif
/*============================================================
SCREENSHOTS
============================================================ */
2015-03-30 00:18:58 +00:00
#include "../screenshot.c"
/*============================================================
2014-08-15 15:24:28 +00:00
PLAYLISTS
============================================================ */
2014-08-15 15:24:28 +00:00
#include "../playlist.c"
2012-04-13 23:02:37 +00:00
/*============================================================
MENU
============================================================ */
2013-04-18 13:04:09 +00:00
#ifdef HAVE_MENU
2015-01-10 03:53:37 +00:00
#include "../menu/menu.c"
2015-06-15 04:25:41 +00:00
#include "../menu/menu_hash.c"
#include "../menu/menu_input.c"
#include "../menu/menu_entry.c"
2015-06-12 14:07:12 +00:00
#include "../menu/menu_entries.c"
2015-02-14 00:51:28 +00:00
#include "../menu/menu_setting.c"
2014-10-28 18:54:23 +00:00
#include "../menu/menu_list.c"
#include "../menu/menu_cbs.c"
#include "../menu/cbs/menu_cbs_ok.c"
#include "../menu/cbs/menu_cbs_cancel.c"
#include "../menu/cbs/menu_cbs_select.c"
#include "../menu/cbs/menu_cbs_start.c"
#include "../menu/cbs/menu_cbs_info.c"
#include "../menu/cbs/menu_cbs_refresh.c"
#include "../menu/cbs/menu_cbs_left.c"
#include "../menu/cbs/menu_cbs_right.c"
#include "../menu/cbs/menu_cbs_title.c"
#include "../menu/cbs/menu_cbs_deferred_push.c"
#include "../menu/cbs/menu_cbs_scan.c"
#include "../menu/cbs/menu_cbs_get_value.c"
#include "../menu/cbs/menu_cbs_iterate.c"
#include "../menu/cbs/menu_cbs_up.c"
#include "../menu/cbs/menu_cbs_down.c"
#include "../menu/cbs/menu_cbs_contentlist_switch.c"
2014-10-28 18:54:23 +00:00
#include "../menu/menu_shader.c"
#include "../menu/menu_navigation.c"
#include "../menu/menu_display.c"
2015-05-11 09:11:23 +00:00
#include "../menu/menu_displaylist.c"
2014-10-28 18:54:23 +00:00
#include "../menu/menu_animation.c"
2015-03-09 13:39:39 +00:00
2015-06-24 10:27:19 +00:00
#include "../menu/intl/menu_hash_de.c"
#include "../menu/intl/menu_hash_es.c"
#include "../menu/intl/menu_hash_eo.c"
2015-06-24 10:27:19 +00:00
#include "../menu/intl/menu_hash_fr.c"
#include "../menu/intl/menu_hash_it.c"
#include "../menu/intl/menu_hash_nl.c"
#include "../menu/intl/menu_hash_pt.c"
#include "../menu/intl/menu_hash_us.c"
2015-03-09 13:39:39 +00:00
#include "../menu/drivers/null.c"
#endif
2015-03-09 13:39:39 +00:00
#ifdef HAVE_RMENU
2015-01-26 09:54:13 +00:00
#include "../menu/drivers/rmenu.c"
#endif
#ifdef HAVE_RGUI
2015-01-26 09:54:13 +00:00
#include "../menu/drivers/rgui.c"
#endif
2014-09-13 04:25:41 +00:00
#ifdef HAVE_OPENGL
2014-10-09 03:14:41 +00:00
#ifdef HAVE_XMB
2015-01-26 09:54:13 +00:00
#include "../menu/drivers/xmb.c"
#endif
2014-09-13 04:25:41 +00:00
#ifdef HAVE_GLUI
2015-01-26 09:54:13 +00:00
#include "../menu/drivers/glui.c"
2014-09-13 04:25:41 +00:00
#endif
#endif
#ifdef HAVE_COMMAND
#include "../command.c"
#endif
2015-04-13 09:15:40 +00:00
#include "../command_event.c"
2012-11-20 02:40:39 +00:00
#ifdef __cplusplus
extern "C" {
#endif
/*============================================================
2014-09-02 17:41:43 +00:00
DEPENDENCIES
============================================================ */
2015-03-14 04:24:57 +00:00
#ifdef WANT_ZLIB
2015-03-06 00:47:09 +00:00
#include "../deps/zlib/adler32.c"
#include "../deps/zlib/compress.c"
#include "../deps/zlib/crc32.c"
#include "../deps/zlib/deflate.c"
#include "../deps/zlib/gzclose.c"
#include "../deps/zlib/gzlib.c"
#include "../deps/zlib/gzread.c"
#include "../deps/zlib/gzwrite.c"
#include "../deps/zlib/inffast.c"
#include "../deps/zlib/inflate.c"
#include "../deps/zlib/inftrees.c"
#include "../deps/zlib/trees.c"
#include "../deps/zlib/uncompr.c"
#include "../deps/zlib/zutil.c"
#endif
/* Decompression support always requires the next two files */
2015-03-14 04:24:57 +00:00
#if defined(WANT_ZLIB) || defined(HAVE_ZLIB)
2015-03-06 00:47:09 +00:00
#include "../deps/zlib/ioapi.c"
#include "../deps/zlib/unzip.c"
#endif
2012-11-20 02:40:39 +00:00
2014-09-02 17:41:43 +00:00
#ifdef HAVE_7ZIP
2014-09-02 19:45:14 +00:00
#include "../deps/7zip/7zIn.c"
#include "../deps/7zip/7zAlloc.c"
#include "../deps/7zip/Bra86.c"
#include "../deps/7zip/CpuArch.c"
#include "../deps/7zip/7zFile.c"
#include "../deps/7zip/7zStream.c"
#include "../deps/7zip/7zBuf2.c"
#include "../deps/7zip/LzmaDec.c"
#include "../deps/7zip/7zCrcOpt.c"
#include "../deps/7zip/Bra.c"
#include "../deps/7zip/7zDec.c"
#include "../deps/7zip/Bcj2.c"
#include "../deps/7zip/7zCrc.c"
#include "../deps/7zip/Lzma2Dec.c"
#include "../deps/7zip/7zBuf.c"
2014-09-02 17:41:43 +00:00
#include "../decompress/7zip_support.c"
#endif
/*============================================================
XML
============================================================ */
2014-12-15 20:34:22 +00:00
#if 0
2014-01-22 11:39:28 +00:00
#ifndef HAVE_LIBXML2
#define RXML_LIBXML2_COMPAT
#include "../libretro-common/formats/xml/rxml.c"
2014-01-22 11:39:28 +00:00
#endif
2014-12-15 20:34:22 +00:00
#endif
/*============================================================
AUDIO UTILS
============================================================ */
#include "../audio/audio_utils.c"
/*============================================================
2015-01-19 21:47:09 +00:00
LIBRETRODB
============================================================ */
2015-01-22 02:58:04 +00:00
#ifdef HAVE_LIBRETRODB
2015-02-18 23:47:19 +00:00
#include "../libretro-db/bintree.c"
#include "../libretro-db/libretrodb.c"
#include "../libretro-db/rmsgpack.c"
#include "../libretro-db/rmsgpack_dom.c"
#include "../libretro-db/query.c"
2015-01-27 17:09:19 +00:00
#include "../database_info.c"
2015-01-22 02:58:04 +00:00
#endif
2015-04-16 18:23:06 +00:00
2012-11-20 02:40:39 +00:00
#ifdef __cplusplus
}
2013-01-09 04:57:02 +00:00
#endif