469 lines
12 KiB
C
Raw Normal View History

2012-04-21 23:13:50 +02:00
/* RetroArch - A frontend for libretro.
2013-01-01 01:37:37 +01:00
* Copyright (C) 2010-2013 - Hans-Kristian Arntzen
* Copyright (C) 2011-2013 - Daniel De Matteis
2012-04-14 01:02:37 +02:00
*
2012-04-21 23:13:50 +02:00
* RetroArch is free software: you can redistribute it and/or modify it under the terms
2012-04-14 01:02:37 +02: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 23:13:50 +02:00
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
2012-04-14 01:02:37 +02: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 23:31:57 +02:00
* You should have received a copy of the GNU General Public License along with RetroArch.
2012-04-14 01:02:37 +02:00
* If not, see <http://www.gnu.org/licenses/>.
*/
#if defined(_XBOX)
#include "../../msvc/msvc_compat.h"
#endif
#ifdef ANDROID
#include "../../android/native/jni/jni_wrapper.c"
#endif
/*============================================================
LOGGERS
============================================================ */
#if defined(HAVE_LOGGER) && defined(__PSL1GHT__)
#include "../logger/psl1ght_logger.c"
2012-12-16 04:13:31 +01:00
#elif defined(HAVE_LOGGER) && !defined(ANDROID)
#include "../logger/logger.c"
#endif
2012-04-14 01:02:37 +02:00
/*============================================================
CONSOLE EXTENSIONS
============================================================ */
2012-12-13 15:32:35 +01:00
#ifdef RARCH_CONSOLE
2012-11-03 08:42:33 +01:00
#include "../rarch_console.h"
default_paths_t default_paths;
#include "../rarch_console_rom_ext.c"
#include "../rarch_console_video.c"
#ifdef HAVE_RARCH_MAIN_WRAP
#include "../rarch_console_main_wrap.c"
#endif
#ifdef HW_DOL
#include "../../ngc/ssaram.c"
#include "../../ngc/sidestep.c"
#endif
#ifdef HAVE_RARCH_EXEC
#include "../rarch_console_exec.c"
#endif
#ifdef HAVE_RSOUND
#include "../rarch_console_rsound.c"
#endif
#include "../rarch_console_config.c"
#ifdef HAVE_DEFAULT_RETROPAD_INPUT
#include "../rarch_console_input.c"
#endif
#ifdef HAVE_ZLIB
#include "../rarch_console_rzlib.c"
#endif
#include "../rarch_console_settings.c"
2012-04-14 01:02:37 +02:00
#ifdef HAVE_LIBRETRO_MANAGEMENT
#include "../rarch_console_libretro_mgmt.c"
#endif
2012-11-03 08:42:33 +01:00
#endif
2012-11-03 08:42:33 +01:00
/*============================================================
PERFORMANCE
============================================================ */
#ifdef ANDROID
#include "../../android/native/jni/cpufeatures.c"
#endif
#include "../../performance.c"
2012-04-14 01:02:37 +02:00
/*============================================================
COMPATIBILITY
============================================================ */
#include "../../compat/compat.c"
/*============================================================
CONFIG FILE
============================================================ */
#ifdef _XBOX
2012-04-21 23:25:32 +02:00
#undef __RARCH_POSIX_STRING_H
#undef __RARCH_MSVC_COMPAT_H
2012-04-14 01:02:37 +02:00
#undef strcasecmp
#endif
2012-04-14 01:02:37 +02:00
#include "../../conf/config_file.c"
/*============================================================
CHEATS
============================================================ */
#ifdef HAVE_XML
#include "../../cheats.c"
#include "../../hash.c"
#endif
2012-04-14 01:02:37 +02:00
/*============================================================
2012-05-28 05:19:04 +02:00
VIDEO CONTEXT
2012-04-14 01:02:37 +02:00
============================================================ */
2012-05-27 04:02:07 +02:00
2012-05-28 01:15:00 +02:00
#ifdef HAVE_VID_CONTEXT
2012-09-25 03:49:20 +02:00
#include "../../gfx/gfx_context.c"
2012-05-28 01:15:00 +02:00
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
#include "../../gfx/context/ps3_ctx.c"
#elif defined(_XBOX)
2012-07-07 20:15:06 +03:00
#include "../../gfx/context/xdk_ctx.c"
2012-11-03 08:42:33 +01:00
#elif defined(ANDROID)
#include "../../gfx/context/androidegl_ctx.c"
2012-05-28 01:15:00 +02:00
#endif
2012-05-27 22:58:14 +02:00
#endif
2012-05-28 05:19:04 +02:00
/*============================================================
VIDEO SHADERS
============================================================ */
2012-05-27 22:58:14 +02:00
#ifdef HAVE_CG
2012-04-14 01:02:37 +02:00
#include "../../gfx/shader_cg.c"
#endif
2012-05-28 00:37:54 +02:00
#ifdef HAVE_HLSL
#include "../../gfx/shader_hlsl.c"
#endif
2012-07-01 22:46:25 +02:00
#ifdef HAVE_GLSL
#include "../../gfx/shader_glsl.c"
#endif
2012-05-28 05:19:04 +02:00
/*============================================================
VIDEO IMAGE
============================================================ */
#if defined(__CELLOS_LV2__)
2012-04-14 01:02:37 +02:00
#include "../../ps3/image.c"
#elif defined(_XBOX1)
#include "../../xbox1/image.c"
#elif defined(ANDROID)
#include "../../gfx/image.c"
2012-05-28 05:19:04 +02:00
#endif
/*============================================================
VIDEO DRIVER
============================================================ */
2012-07-28 22:58:08 +02:00
#if defined(HAVE_OPENGL)
2012-09-11 12:33:46 +02:00
#include "../../gfx/math/matrix.c"
2012-05-28 05:19:04 +02:00
#include "../../gfx/gl.c"
2012-04-14 13:42:25 +02:00
#elif defined(GEKKO)
#ifdef HW_RVL
#include "../../wii/vi_encoder.c"
#include "../../wii/mem2_manager.c"
#endif
2012-08-07 05:24:12 +02:00
#include "../../gx/gx_video.c"
2012-11-22 23:32:42 +01:00
#elif defined(SN_TARGET_PSP2)
2012-11-26 03:16:20 +01:00
#include "../../vita/vita_video.c"
#elif defined(PSP)
#include "../../psp1/psp1_video.c"
#elif defined(XENON)
#include "../../360/xenon360_video.c"
2012-04-14 13:42:25 +02:00
#endif
2012-09-17 05:31:29 +02:00
#ifdef HAVE_DYLIB
#include "../../gfx/ext_gfx.c"
#endif
2012-07-15 19:12:58 +02:00
#include "../../gfx/gfx_common.c"
#ifdef _XBOX
#include "../../xdk/xdk_resources.cpp"
#include "../../xdk/xdk_d3d.cpp"
#endif
#include "../../gfx/null.c"
2012-05-27 04:02:07 +02:00
/*============================================================
FONTS
============================================================ */
#if defined(HAVE_OPENGL) || defined(HAVE_D3D8) || defined(HAVE_D3D9)
2012-12-13 22:49:17 +01:00
#ifdef HAVE_FREETYPE
#include "../../gfx/fonts/freetype.c"
2012-12-13 22:49:17 +01:00
#endif
#include "../../gfx/fonts/fonts.c"
2012-12-13 22:49:17 +01:00
#include "../../gfx/fonts/bitmapfont.c"
2012-12-15 00:17:43 +01:00
#ifdef HAVE_OPENGL
#include "../../gfx/fonts/gl_font.c"
#endif
2012-12-15 03:59:31 +01:00
#ifdef _XBOX
#include "../../gfx/fonts/d3d_font.c"
#endif
#if defined(HAVE_LIBDBGFONT)
2012-11-22 18:02:46 +01:00
#include "../../gfx/fonts/ps_libdbgfont.c"
2012-12-15 02:59:35 +01:00
#elif defined(HAVE_OPENGL)
#include "../../gfx/fonts/gl_raster_font.c"
2012-07-31 01:23:42 +02:00
#elif defined(_XBOX1)
#include "../../gfx/fonts/xdk1_xfonts.c"
2012-06-24 21:25:11 +02:00
#elif defined(_XBOX360)
2012-06-24 11:33:25 +02:00
#include "../../gfx/fonts/xdk360_fonts.cpp"
2012-04-14 01:02:37 +02:00
#endif
#endif
2012-04-14 01:02:37 +02:00
/*============================================================
INPUT
============================================================ */
#ifndef RARCH_CONSOLE
#include "../../input/input_common.c"
#endif
#ifdef HAVE_OVERLAY
#include "../../input/overlay.c"
#endif
#if defined(__CELLOS_LV2__)
2012-04-14 01:02:37 +02:00
#include "../../ps3/ps3_input.c"
#elif defined(SN_TARGET_PSP2) || defined(PSP)
#include "../../psp/psp_input.c"
2012-04-14 13:42:25 +02:00
#elif defined(GEKKO)
2012-08-07 05:24:12 +02:00
#include "../../gx/gx_input.c"
#elif defined(_XBOX)
#include "../../xdk/xdk_xinput_input.c"
#elif defined(XENON)
#include "../../360/xenon360_input.c"
2012-11-03 08:42:33 +01:00
#elif defined(ANDROID)
#include "../../android/native/jni/input_autodetect.c"
2012-11-03 08:42:33 +01:00
#include "../../android/native/jni/input_android.c"
#endif
2012-07-07 16:24:25 +02:00
#include "../../input/null.c"
2012-04-14 01:02:37 +02:00
/*============================================================
2012-05-28 05:19:04 +02:00
STATE TRACKER
2012-04-14 01:02:37 +02:00
============================================================ */
#include "../../gfx/state_tracker.c"
/*============================================================
FIFO BUFFER
============================================================ */
#include "../../fifo_buffer.c"
/*============================================================
AUDIO HERMITE
============================================================ */
#ifdef HAVE_SINC
2012-12-02 23:50:32 +01:00
#include "../../audio/sinc.c"
#else
2012-04-14 01:02:37 +02:00
#include "../../audio/hermite.c"
2012-12-02 23:50:32 +01:00
#endif
2012-04-14 01:02:37 +02:00
/*============================================================
RSOUND
============================================================ */
#ifdef HAVE_RSOUND
#include "../../deps/librsound/librsound.c"
2012-04-14 01:02:37 +02:00
#include "../../audio/rsound.c"
#endif
/*============================================================
AUDIO UTILS
============================================================ */
#include "../../audio/utils.c"
/*============================================================
AUDIO
============================================================ */
#if defined(__CELLOS_LV2__)
2012-04-14 01:02:37 +02:00
#include "../../ps3/ps3_audio.c"
2012-06-24 21:25:11 +02:00
#elif defined(_XBOX360)
2012-04-14 01:02:37 +02:00
#include "../../360/xdk360_audio.cpp"
#elif defined(XENON)
#include "../../360/xenon360_audio.c"
2012-04-14 13:42:25 +02:00
#elif defined(GEKKO)
2012-08-07 05:24:12 +02:00
#include "../../gx/gx_audio.c"
2012-04-14 01:02:37 +02:00
#endif
2012-07-08 19:30:19 +03:00
#ifdef HAVE_DSOUND
#include "../../audio/dsound.c"
#endif
2012-09-17 05:31:29 +02:00
#ifdef HAVE_DYLIB
#include "../../audio/ext_audio.c"
#endif
2012-11-03 08:42:33 +01:00
#ifdef HAVE_SL
#include "../../audio/opensl.c"
#endif
#include "../../audio/null.c"
/*============================================================
DRIVERS
============================================================ */
#include "../../driver.c"
/*============================================================
SCALERS
============================================================ */
#include "../../gfx/scaler/filter.c"
#include "../../gfx/scaler/pixconv.c"
#include "../../gfx/scaler/scaler.c"
#include "../../gfx/scaler/scaler_int.c"
2012-04-14 01:02:37 +02:00
/*============================================================
DYNAMIC
============================================================ */
#include "../../dynamic.c"
/*============================================================
FILE
============================================================ */
2012-05-22 22:11:21 +02:00
#ifdef HAVE_FILEBROWSER
2012-04-14 01:02:37 +02:00
#include "../fileio/file_browser.c"
#endif
#include "../../file.c"
#include "../../file_path.c"
/*============================================================
MESSAGE
============================================================ */
#include "../../message.c"
/*============================================================
PATCH
============================================================ */
#include "../../patch.c"
/*============================================================
SETTINGS
============================================================ */
#include "../../settings.c"
/*============================================================
REWIND
============================================================ */
#include "../../rewind.c"
/*============================================================
MAIN
============================================================ */
#if defined(_XBOX)
#include "../../xdk/frontend/main.c"
#elif defined(XENON)
#include "../../360/frontend-xenon/main.c"
2012-04-14 13:42:25 +02:00
#elif defined(GEKKO)
2012-08-07 05:24:12 +02:00
#include "../../gx/frontend/main.c"
#elif defined(__CELLOS_LV2__)
#include "../../ps3/frontend/main.c"
#elif defined(PSP)
#include "../../psp/frontend/main.c"
2012-11-03 08:42:33 +01:00
#elif defined(ANDROID)
#include "../../android/native/jni/main.c"
2012-04-14 01:02:37 +02:00
#endif
/*============================================================
2012-04-22 02:06:34 +02:00
RETROARCH
2012-04-14 01:02:37 +02:00
============================================================ */
2012-04-21 23:48:05 +02:00
#include "../../retroarch.c"
2012-04-14 01:02:37 +02:00
/*============================================================
THREAD
============================================================ */
#if defined(HAVE_THREAD) && defined(XENON)
2012-11-25 05:44:44 +01:00
#include "../../thread/xenon_sdl_threads.c"
#elif defined(HAVE_THREAD)
2012-04-14 01:02:37 +02:00
#include "../../thread.c"
#ifdef ANDROID
2012-11-03 08:42:33 +01:00
#include "../../autosave.c"
2012-04-14 14:08:00 +02:00
#endif
#endif
2012-04-14 01:02:37 +02:00
/*============================================================
NETPLAY
============================================================ */
2012-05-28 05:19:04 +02:00
#ifdef HAVE_NETPLAY
2012-04-14 01:02:37 +02:00
#include "../../netplay.c"
2012-04-14 14:08:00 +02:00
#endif
2012-04-14 01:02:37 +02:00
/*============================================================
SCREENSHOTS
============================================================ */
#ifdef HAVE_SCREENSHOTS
#include "../../screenshot.c"
#endif
2012-04-14 01:02:37 +02:00
/*============================================================
MENU
============================================================ */
#if defined(HAVE_RMENU_GUI)
#include "../rmenu/rmenu_stack.c"
#include "../rmenu/rmenu.c"
#endif
#ifdef HAVE_RGUI
#include "../rgui/rgui.c"
#include "../rgui/list.c"
#endif
2012-06-24 21:25:11 +02:00
#if defined(_XBOX360)
2012-06-23 21:06:38 +02:00
#include "../../360/frontend-xdk/menu.cpp"
#elif defined(_XBOX1)
#include "../../xbox1/frontend/RetroLaunch/IoSupport.cpp"
2012-04-14 01:02:37 +02:00
#endif
2012-11-20 03:40:39 +01:00
#ifdef __cplusplus
extern "C" {
#endif
/*============================================================
RZLIB
============================================================ */
#ifdef WANT_RZLIB
#include "../../deps/rzlib/rzlib.c"
#endif
2012-11-20 03:40:39 +01:00
/*============================================================
LIBXML2
============================================================ */
#ifdef WANT_LIBXML2
#include "../../deps/libxml2/error.c"
#include "../../deps/libxml2/chvalid.c"
#include "../../deps/libxml2/dict.c"
#include "../../deps/libxml2/encoding.c"
#include "../../deps/libxml2/entities.c"
#include "../../deps/libxml2/globals.c"
#include "../../deps/libxml2/libxml_hash.c"
#include "../../deps/libxml2/libxml_list.c"
#include "../../deps/libxml2/parser.c"
#include "../../deps/libxml2/parserInternals.c"
#include "../../deps/libxml2/SAX2.c"
#include "../../deps/libxml2/tree.c"
#include "../../deps/libxml2/uri.c"
#include "../../deps/libxml2/valid.c"
#include "../../deps/libxml2/xmlIO.c"
#include "../../deps/libxml2/xmlmemory.c"
#include "../../deps/libxml2/xmlreader.c"
#include "../../deps/libxml2/xmlstring.c"
#endif
2012-11-20 03:40:39 +01:00
#ifdef __cplusplus
}
#endif