2012-04-21 21:13:50 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2012-04-13 23:02:37 +00:00
|
|
|
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
|
|
|
|
* Copyright (C) 2011-2012 - Daniel De Matteis
|
|
|
|
*
|
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(_XBOX)
|
|
|
|
#include "../../msvc/msvc_compat.h"
|
|
|
|
#endif
|
|
|
|
|
2012-11-03 07:42:33 +00:00
|
|
|
#ifdef RARCH_CONSOLE
|
2012-10-01 19:45:09 +00:00
|
|
|
|
2012-04-13 23:02:37 +00:00
|
|
|
/*============================================================
|
|
|
|
CONSOLE EXTENSIONS
|
|
|
|
============================================================ */
|
2012-11-03 07:42:33 +00:00
|
|
|
|
|
|
|
#include "../rarch_console.h"
|
|
|
|
|
|
|
|
default_paths_t default_paths;
|
|
|
|
|
2012-07-28 13:54:35 +00:00
|
|
|
#include "../rarch_console_rom_ext.c"
|
2012-07-28 14:10:31 +00:00
|
|
|
#include "../rarch_console_video.c"
|
|
|
|
|
2012-07-28 14:21:05 +00:00
|
|
|
#ifdef HAVE_RARCH_MAIN_WRAP
|
|
|
|
#include "../rarch_console_main_wrap.c"
|
|
|
|
#endif
|
|
|
|
|
2012-09-03 22:05:23 +00:00
|
|
|
#ifdef HW_DOL
|
|
|
|
#include "../../ngc/ssaram.c"
|
|
|
|
#include "../../ngc/sidestep.c"
|
|
|
|
#endif
|
|
|
|
|
2012-07-28 14:35:07 +00:00
|
|
|
#ifdef HAVE_RARCH_EXEC
|
|
|
|
#include "../rarch_console_exec.c"
|
|
|
|
#endif
|
|
|
|
|
2012-07-29 22:58:47 +00:00
|
|
|
#ifdef HAVE_RSOUND
|
|
|
|
#include "../rarch_console_rsound.c"
|
|
|
|
#endif
|
2012-07-28 14:42:57 +00:00
|
|
|
|
2012-07-25 21:09:36 +00:00
|
|
|
#ifdef HAVE_CONFIGFILE
|
2012-07-28 13:54:35 +00:00
|
|
|
#include "../rarch_console_config.c"
|
2012-07-25 21:09:36 +00:00
|
|
|
#endif
|
|
|
|
|
2012-07-29 23:10:36 +00:00
|
|
|
#ifdef HAVE_DEFAULT_RETROPAD_INPUT
|
2012-07-28 13:54:35 +00:00
|
|
|
#include "../rarch_console_input.c"
|
2012-07-29 23:10:36 +00:00
|
|
|
#endif
|
2012-07-25 17:03:01 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_ZLIB
|
2012-07-28 13:54:35 +00:00
|
|
|
#include "../rarch_console_rzlib.c"
|
2012-07-25 17:03:01 +00:00
|
|
|
#endif
|
|
|
|
|
2012-07-28 13:54:35 +00:00
|
|
|
#include "../rarch_console_settings.c"
|
2012-04-13 23:02:37 +00:00
|
|
|
|
2012-05-28 16:50:30 +00:00
|
|
|
#ifdef HAVE_LIBRETRO_MANAGEMENT
|
2012-07-28 13:54:35 +00:00
|
|
|
#include "../rarch_console_libretro_mgmt.c"
|
2012-05-28 16:50:30 +00:00
|
|
|
#endif
|
|
|
|
|
2012-11-03 07:42:33 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
PERFORMANCE
|
|
|
|
============================================================ */
|
|
|
|
|
|
|
|
#ifdef ANDROID
|
|
|
|
#include "../../android/native/jni/cpufeatures.c"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "../../performance.c"
|
|
|
|
|
2012-04-13 23:02:37 +00:00
|
|
|
/*============================================================
|
|
|
|
COMPATIBILITY
|
|
|
|
============================================================ */
|
|
|
|
#include "../../compat/compat.c"
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
CONFIG FILE
|
|
|
|
============================================================ */
|
|
|
|
#ifdef _XBOX
|
2012-04-21 21:25:32 +00:00
|
|
|
#undef __RARCH_POSIX_STRING_H
|
|
|
|
#undef __RARCH_MSVC_COMPAT_H
|
2012-04-13 23:02:37 +00:00
|
|
|
#undef strcasecmp
|
|
|
|
#endif
|
2012-05-28 03:21:19 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIGFILE
|
2012-04-13 23:02:37 +00:00
|
|
|
#include "../../conf/config_file.c"
|
2012-05-28 03:21:19 +00:00
|
|
|
#endif
|
2012-04-13 23:02:37 +00:00
|
|
|
|
2012-11-17 16:16:11 +00:00
|
|
|
/*============================================================
|
|
|
|
CHEATS
|
|
|
|
============================================================ */
|
|
|
|
#ifdef HAVE_XML
|
|
|
|
#include "../../cheats.c"
|
|
|
|
#include "../../hash.c"
|
|
|
|
#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
|
|
|
|
2012-05-27 23:15:00 +00:00
|
|
|
#ifdef HAVE_VID_CONTEXT
|
2012-09-25 01:49:20 +00:00
|
|
|
#include "../../gfx/gfx_context.c"
|
2012-05-27 23:15:00 +00:00
|
|
|
|
2012-09-14 09:07:50 +00:00
|
|
|
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
2012-05-26 12:59:42 +00:00
|
|
|
#include "../../gfx/context/ps3_ctx.c"
|
2012-07-07 13:40:14 +00:00
|
|
|
#elif defined(_XBOX)
|
2012-07-07 17:15:06 +00:00
|
|
|
#include "../../gfx/context/xdk_ctx.c"
|
2012-11-03 07:42:33 +00:00
|
|
|
#elif defined(ANDROID)
|
|
|
|
#include "../../gfx/context/androidegl_ctx.c"
|
2012-05-27 23:15:00 +00:00
|
|
|
#endif
|
|
|
|
|
2012-05-27 20:58:14 +00:00
|
|
|
#endif
|
|
|
|
|
2012-05-28 03:19:04 +00:00
|
|
|
/*============================================================
|
|
|
|
VIDEO SHADERS
|
|
|
|
============================================================ */
|
|
|
|
|
2012-05-27 20:58:14 +00:00
|
|
|
#ifdef HAVE_CG
|
2012-04-13 23:02:37 +00:00
|
|
|
#include "../../gfx/shader_cg.c"
|
2012-05-27 20:39:29 +00:00
|
|
|
#endif
|
|
|
|
|
2012-05-27 22:37:54 +00:00
|
|
|
#ifdef HAVE_HLSL
|
|
|
|
#include "../../gfx/shader_hlsl.c"
|
|
|
|
#endif
|
|
|
|
|
2012-07-01 20:46:25 +00:00
|
|
|
#ifdef HAVE_GLSL
|
|
|
|
#include "../../gfx/shader_glsl.c"
|
|
|
|
#endif
|
|
|
|
|
2012-05-28 03:19:04 +00:00
|
|
|
/*============================================================
|
|
|
|
VIDEO IMAGE
|
|
|
|
============================================================ */
|
|
|
|
|
2012-05-27 20:39:29 +00:00
|
|
|
#if defined(__CELLOS_LV2__)
|
2012-04-13 23:02:37 +00:00
|
|
|
#include "../../ps3/image.c"
|
2012-08-05 15:18:19 +00:00
|
|
|
#elif defined(_XBOX1)
|
|
|
|
#include "../../xbox1/image.c"
|
2012-11-17 16:16:11 +00:00
|
|
|
#elif defined(ANDROID)
|
|
|
|
#include "../../gfx/image.c"
|
2012-05-28 03:19:04 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
VIDEO DRIVER
|
|
|
|
============================================================ */
|
|
|
|
|
2012-07-28 20:58:08 +00:00
|
|
|
#if defined(HAVE_OPENGL)
|
2012-09-11 10:33:46 +00:00
|
|
|
#include "../../gfx/math/matrix.c"
|
2012-05-28 03:19:04 +00:00
|
|
|
#include "../../gfx/gl.c"
|
2012-04-14 11:42:25 +00:00
|
|
|
#elif defined(GEKKO)
|
2012-08-08 20:39:19 +00:00
|
|
|
#ifdef HW_RVL
|
2012-09-01 01:01:33 +00:00
|
|
|
#include "../../wii/vi_encoder.c"
|
|
|
|
#include "../../wii/mem2_manager.c"
|
2012-08-08 20:39:19 +00:00
|
|
|
#endif
|
2012-08-07 03:24:12 +00:00
|
|
|
#include "../../gx/gx_video.c"
|
2012-04-14 11:42:25 +00:00
|
|
|
#endif
|
|
|
|
|
2012-09-17 03:31:29 +00:00
|
|
|
#ifdef HAVE_DYLIB
|
|
|
|
#include "../../gfx/ext_gfx.c"
|
|
|
|
#endif
|
|
|
|
|
2012-07-15 17:12:58 +00:00
|
|
|
#include "../../gfx/gfx_common.c"
|
|
|
|
|
2012-07-08 19:42:26 +00:00
|
|
|
#ifdef _XBOX
|
2012-07-16 00:15:47 +00:00
|
|
|
#include "../../xdk/xdk_resources.cpp"
|
2012-10-01 01:35:38 +00:00
|
|
|
#include "../../xdk/xdk_d3d.cpp"
|
2012-07-07 12:06:21 +00:00
|
|
|
#endif
|
|
|
|
|
2012-06-20 04:39:52 +00:00
|
|
|
#include "../../gfx/null.c"
|
|
|
|
|
2012-05-27 02:02:07 +00:00
|
|
|
/*============================================================
|
|
|
|
FONTS
|
|
|
|
============================================================ */
|
|
|
|
|
2012-09-14 09:07:50 +00:00
|
|
|
#if defined(HAVE_OPENGL) || defined(HAVE_D3D8) || defined(HAVE_D3D9)
|
2012-09-27 16:16:06 +00:00
|
|
|
|
|
|
|
#if defined(HAVE_FREETYPE)
|
|
|
|
#include "../../gfx/fonts/freetype.c"
|
|
|
|
#include "../../gfx/fonts/fonts.c"
|
|
|
|
#elif defined(HAVE_LIBDBGFONT)
|
2012-05-27 02:02:07 +00:00
|
|
|
#include "../../gfx/fonts/ps3_libdbgfont.c"
|
2012-07-30 23:23:42 +00:00
|
|
|
#elif defined(_XBOX1)
|
|
|
|
#include "../../gfx/fonts/xdk1_xfonts.c"
|
2012-06-24 19:25:11 +00:00
|
|
|
#elif defined(_XBOX360)
|
2012-06-24 09:33:25 +00:00
|
|
|
#include "../../gfx/fonts/xdk360_fonts.cpp"
|
2012-09-14 09:07:50 +00:00
|
|
|
#else
|
2012-09-10 00:02:30 +00:00
|
|
|
#include "../../gfx/fonts/null_fonts.c"
|
2012-04-13 23:02:37 +00:00
|
|
|
#endif
|
2012-09-27 16:16:06 +00:00
|
|
|
|
2012-09-14 09:07:50 +00:00
|
|
|
#endif
|
2012-04-13 23:02:37 +00:00
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
INPUT
|
|
|
|
============================================================ */
|
2012-07-01 12:10:13 +00:00
|
|
|
#if defined(__CELLOS_LV2__)
|
2012-04-13 23:02:37 +00:00
|
|
|
#include "../../ps3/ps3_input.c"
|
2012-04-14 11:42:25 +00:00
|
|
|
#elif defined(GEKKO)
|
2012-08-07 03:24:12 +00:00
|
|
|
#include "../../gx/gx_input.c"
|
2012-07-31 18:56:05 +00:00
|
|
|
#elif defined(_XBOX)
|
|
|
|
#include "../../xdk/xdk_xinput_input.c"
|
2012-11-03 07:42:33 +00:00
|
|
|
#elif defined(ANDROID)
|
|
|
|
#include "../../android/native/jni/input_android.c"
|
2012-07-08 19:42:26 +00:00
|
|
|
#endif
|
2012-07-07 14:24:25 +00:00
|
|
|
|
2012-06-20 04:39:52 +00:00
|
|
|
#include "../../input/null.c"
|
|
|
|
|
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
|
|
|
============================================================ */
|
|
|
|
#include "../../gfx/state_tracker.c"
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
FIFO BUFFER
|
|
|
|
============================================================ */
|
|
|
|
#include "../../fifo_buffer.c"
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
AUDIO HERMITE
|
|
|
|
============================================================ */
|
|
|
|
#include "../../audio/hermite.c"
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
RSOUND
|
|
|
|
============================================================ */
|
2012-05-22 15:26:23 +00:00
|
|
|
#ifdef HAVE_RSOUND
|
2012-11-20 02:34:45 +00:00
|
|
|
#include "../../deps/librsound/librsound.c"
|
2012-04-13 23:02:37 +00:00
|
|
|
#include "../../audio/rsound.c"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
AUDIO UTILS
|
|
|
|
============================================================ */
|
|
|
|
#include "../../audio/utils.c"
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
AUDIO
|
|
|
|
============================================================ */
|
2012-07-01 13:18:26 +00:00
|
|
|
#if defined(__CELLOS_LV2__)
|
2012-04-13 23:02:37 +00:00
|
|
|
#include "../../ps3/ps3_audio.c"
|
2012-06-24 19:25:11 +00:00
|
|
|
#elif defined(_XBOX360)
|
2012-04-13 23:02:37 +00:00
|
|
|
#include "../../360/xdk360_audio.cpp"
|
2012-04-14 11:42:25 +00:00
|
|
|
#elif defined(GEKKO)
|
2012-08-07 03:24:12 +00:00
|
|
|
#include "../../gx/gx_audio.c"
|
2012-04-13 23:02:37 +00:00
|
|
|
#endif
|
|
|
|
|
2012-07-08 16:30:19 +00:00
|
|
|
#ifdef HAVE_DSOUND
|
|
|
|
#include "../../audio/dsound.c"
|
|
|
|
#endif
|
|
|
|
|
2012-09-17 03:31:29 +00:00
|
|
|
#ifdef HAVE_DYLIB
|
|
|
|
#include "../../audio/ext_audio.c"
|
|
|
|
#endif
|
|
|
|
|
2012-11-03 07:42:33 +00:00
|
|
|
#ifdef HAVE_SL
|
|
|
|
#include "../../audio/opensl.c"
|
|
|
|
#endif
|
|
|
|
|
2012-06-20 04:39:52 +00:00
|
|
|
#include "../../audio/null.c"
|
|
|
|
|
2012-11-03 15:38:03 +00:00
|
|
|
/*============================================================
|
|
|
|
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-13 23:02:37 +00:00
|
|
|
/*============================================================
|
|
|
|
DYNAMIC
|
|
|
|
============================================================ */
|
|
|
|
#include "../../dynamic.c"
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
FILE
|
|
|
|
============================================================ */
|
2012-05-22 20:11:21 +00:00
|
|
|
#ifdef HAVE_FILEBROWSER
|
2012-04-13 23:02:37 +00: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
|
|
|
|
============================================================ */
|
2012-07-07 21:27:48 +00:00
|
|
|
#if defined(_XBOX)
|
2012-07-16 03:13:30 +00:00
|
|
|
#include "../../xdk/frontend/main.c"
|
2012-04-14 11:42:25 +00:00
|
|
|
#elif defined(GEKKO)
|
2012-08-07 03:24:12 +00:00
|
|
|
#include "../../gx/frontend/main.c"
|
2012-11-15 13:40:50 +00:00
|
|
|
#elif defined(__CELLOS_LV2__)
|
2012-09-11 07:17:25 +00:00
|
|
|
#include "../../ps3/frontend/main.c"
|
2012-11-03 07:42:33 +00:00
|
|
|
#elif defined(ANDROID)
|
|
|
|
#include "../../android/native/jni/main.c"
|
2012-04-13 23:02:37 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*============================================================
|
2012-04-22 00:06:34 +00:00
|
|
|
RETROARCH
|
2012-04-13 23:02:37 +00:00
|
|
|
============================================================ */
|
2012-04-21 21:48:05 +00:00
|
|
|
#include "../../retroarch.c"
|
2012-04-13 23:02:37 +00:00
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
THREAD
|
|
|
|
============================================================ */
|
2012-07-01 15:29:24 +00:00
|
|
|
#ifdef HAVE_THREAD
|
2012-04-13 23:02:37 +00:00
|
|
|
#include "../../thread.c"
|
2012-11-06 02:33:00 +00:00
|
|
|
#ifdef ANDROID
|
2012-11-03 07:42:33 +00:00
|
|
|
#include "../../autosave.c"
|
2012-04-14 12:08:00 +00:00
|
|
|
#endif
|
2012-11-06 02:33:00 +00:00
|
|
|
#endif
|
2012-04-13 23:02:37 +00:00
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
NETPLAY
|
|
|
|
============================================================ */
|
2012-05-28 03:19:04 +00:00
|
|
|
#ifdef HAVE_NETPLAY
|
2012-04-13 23:02:37 +00:00
|
|
|
#include "../../netplay.c"
|
2012-04-14 12:08:00 +00:00
|
|
|
#endif
|
2012-04-13 23:02:37 +00:00
|
|
|
|
2012-08-20 01:30:09 +00:00
|
|
|
/*============================================================
|
|
|
|
SCREENSHOTS
|
|
|
|
============================================================ */
|
|
|
|
#ifdef HAVE_SCREENSHOTS
|
|
|
|
#include "../../screenshot.c"
|
|
|
|
#endif
|
|
|
|
|
2012-04-13 23:02:37 +00:00
|
|
|
/*============================================================
|
|
|
|
MENU
|
|
|
|
============================================================ */
|
2012-08-04 01:25:44 +00:00
|
|
|
#ifdef HAVE_RMENU
|
2012-08-20 16:17:08 +00:00
|
|
|
#include "../rmenu/rmenu_stack.c"
|
2012-08-04 01:25:44 +00:00
|
|
|
#include "../rmenu/rmenu.c"
|
|
|
|
#endif
|
|
|
|
|
2012-08-04 01:32:25 +00:00
|
|
|
#ifdef HAVE_RGUI
|
|
|
|
#include "../rgui/rgui.c"
|
|
|
|
#include "../rgui/list.c"
|
|
|
|
#endif
|
|
|
|
|
2012-06-24 19:25:11 +00:00
|
|
|
#if defined(_XBOX360)
|
2012-06-23 19:06:38 +00:00
|
|
|
#include "../../360/frontend-xdk/menu.cpp"
|
2012-07-23 16:52:58 +00:00
|
|
|
#elif defined(_XBOX1)
|
2012-07-24 16:35:29 +00:00
|
|
|
#include "../../xbox1/frontend/RetroLaunch/IoSupport.cpp"
|
2012-04-13 23:02:37 +00:00
|
|
|
#endif
|
2012-11-19 04:43:57 +00:00
|
|
|
|
2012-11-20 02:40:39 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-11-19 04:43:57 +00:00
|
|
|
/*============================================================
|
|
|
|
RZLIB
|
|
|
|
============================================================ */
|
|
|
|
#ifdef WANT_RZLIB
|
2012-11-20 02:34:45 +00:00
|
|
|
#include "../../deps/rzlib/rzlib.c"
|
2012-11-19 04:43:57 +00:00
|
|
|
#endif
|
2012-11-20 02:40:39 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|