2012-04-21 23:13:50 +02:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2012-04-14 01:02:37 +02:00
|
|
|
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
|
|
|
|
* Copyright (C) 2011-2012 - Daniel De Matteis
|
|
|
|
*
|
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
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
CONSOLE EXTENSIONS
|
|
|
|
============================================================ */
|
2012-06-28 17:52:51 +02:00
|
|
|
#include "../retroarch_console.c"
|
2012-05-29 01:27:45 +02:00
|
|
|
#include "../console_settings.c"
|
2012-04-14 01:02:37 +02:00
|
|
|
|
2012-05-28 18:50:30 +02:00
|
|
|
#ifdef HAVE_LIBRETRO_MANAGEMENT
|
|
|
|
#include "../libretro_mgmt.c"
|
|
|
|
#endif
|
|
|
|
|
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-05-28 05:21:19 +02:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIGFILE
|
2012-04-14 01:02:37 +02:00
|
|
|
#include "../../conf/config_file.c"
|
2012-05-28 05:21:19 +02:00
|
|
|
#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-04-14 01:02:37 +02:00
|
|
|
#if defined(__CELLOS_LV2__)
|
2012-05-26 14:59:42 +02:00
|
|
|
#include "../../gfx/context/ps3_ctx.c"
|
2012-07-07 16:40:14 +03:00
|
|
|
#elif defined(_XBOX)
|
2012-07-07 20:15:06 +03:00
|
|
|
#include "../../gfx/context/xdk_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"
|
2012-05-27 22:39:29 +02:00
|
|
|
#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
|
|
|
|
============================================================ */
|
|
|
|
|
2012-05-27 22:39:29 +02:00
|
|
|
#if defined(__CELLOS_LV2__)
|
2012-04-14 01:02:37 +02:00
|
|
|
#include "../../ps3/image.c"
|
2012-05-28 05:19:04 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
VIDEO DRIVER
|
|
|
|
============================================================ */
|
|
|
|
|
2012-07-01 22:44:33 +02:00
|
|
|
#if defined(HAVE_OPENGLES11)
|
2012-05-28 05:19:04 +02:00
|
|
|
#include "../../gfx/gl.c"
|
2012-07-01 22:44:33 +02:00
|
|
|
#elif defined(HAVE_OPENGLES20)
|
|
|
|
#include "../../gfx/gles.c"
|
2012-04-14 13:42:25 +02:00
|
|
|
#elif defined(GEKKO)
|
|
|
|
#include "../../wii/video.c"
|
|
|
|
#endif
|
|
|
|
|
2012-07-15 19:12:58 +02:00
|
|
|
#include "../../gfx/gfx_common.c"
|
|
|
|
|
2012-07-08 21:42:26 +02:00
|
|
|
#ifdef _XBOX
|
2012-07-16 02:15:47 +02:00
|
|
|
#include "../../xdk/xdk_resources.cpp"
|
2012-07-08 21:42:26 +02:00
|
|
|
#if defined(HAVE_D3D9)
|
|
|
|
#include "../../360/xdk_d3d9.cpp"
|
|
|
|
#elif defined(HAVE_D3D8)
|
|
|
|
#include "../../xbox1/xdk_d3d8.cpp"
|
|
|
|
#endif
|
2012-07-07 14:06:21 +02:00
|
|
|
#endif
|
|
|
|
|
2012-06-20 06:39:52 +02:00
|
|
|
#include "../../gfx/null.c"
|
|
|
|
|
2012-05-27 04:02:07 +02:00
|
|
|
/*============================================================
|
|
|
|
FONTS
|
|
|
|
============================================================ */
|
|
|
|
|
2012-07-01 13:33:30 +02:00
|
|
|
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
2012-05-27 04:02:07 +02:00
|
|
|
#include "../../gfx/fonts/ps3_libdbgfont.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
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
INPUT
|
|
|
|
============================================================ */
|
2012-07-01 14:10:13 +02:00
|
|
|
#if defined(__CELLOS_LV2__)
|
2012-04-14 01:02:37 +02:00
|
|
|
#include "../../ps3/ps3_input.c"
|
2012-04-14 13:42:25 +02:00
|
|
|
#elif defined(GEKKO)
|
|
|
|
#include "../../wii/input.c"
|
2012-04-14 01:02:37 +02:00
|
|
|
#endif
|
|
|
|
|
2012-07-08 21:42:26 +02:00
|
|
|
#ifdef _XBOX
|
|
|
|
#if defined(HAVE_XINPUT_XBOX1)
|
|
|
|
#include "../../xbox1/xinput_xbox_input.c"
|
|
|
|
#elif defined(HAVE_XINPUT2)
|
2012-07-16 04:24:46 +02:00
|
|
|
#include "../../360/xinput_360_input.c"
|
2012-07-07 16:24:25 +02:00
|
|
|
#endif
|
2012-07-08 21:42:26 +02:00
|
|
|
#endif
|
2012-07-07 16:24:25 +02:00
|
|
|
|
2012-06-20 06:39:52 +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"
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
DRIVERS
|
|
|
|
============================================================ */
|
|
|
|
#include "../../driver.c"
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
FIFO BUFFER
|
|
|
|
============================================================ */
|
|
|
|
#include "../../fifo_buffer.c"
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
AUDIO HERMITE
|
|
|
|
============================================================ */
|
2012-07-07 18:06:42 +03:00
|
|
|
#ifdef HAVE_FIXED_POINT
|
|
|
|
#include "../../audio/sinc.c"
|
|
|
|
#else
|
2012-04-14 01:02:37 +02:00
|
|
|
#include "../../audio/hermite.c"
|
2012-07-07 18:06:42 +03:00
|
|
|
#endif
|
2012-04-14 01:02:37 +02:00
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
RSOUND
|
|
|
|
============================================================ */
|
2012-05-22 17:26:23 +02:00
|
|
|
#ifdef HAVE_RSOUND
|
2012-04-14 01:02:37 +02:00
|
|
|
#include "../../console/librsound/librsound.c"
|
|
|
|
#include "../../audio/rsound.c"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
AUDIO UTILS
|
|
|
|
============================================================ */
|
|
|
|
#include "../../audio/utils.c"
|
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
AUDIO
|
|
|
|
============================================================ */
|
2012-07-01 15:18:26 +02:00
|
|
|
#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"
|
2012-04-14 13:42:25 +02:00
|
|
|
#elif defined(GEKKO)
|
|
|
|
#include "../../wii/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-06-20 06:39:52 +02:00
|
|
|
#include "../../audio/null.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
|
|
|
|
============================================================ */
|
2012-07-08 00:27:48 +03:00
|
|
|
#if defined(_XBOX)
|
2012-07-16 05:13:30 +02:00
|
|
|
#include "../../xdk/frontend/main.c"
|
2012-04-14 13:42:25 +02:00
|
|
|
#elif defined(GEKKO)
|
2012-06-23 21:06:38 +02:00
|
|
|
#include "../../wii/frontend/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
|
|
|
|
============================================================ */
|
2012-07-01 17:29:24 +02:00
|
|
|
#ifdef HAVE_THREAD
|
2012-04-14 01:02:37 +02:00
|
|
|
#include "../../thread.c"
|
2012-04-14 14:08:00 +02:00
|
|
|
#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
|
|
|
|
|
|
|
/*============================================================
|
|
|
|
MENU
|
|
|
|
============================================================ */
|
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"
|
2012-04-14 13:42:25 +02:00
|
|
|
#elif defined(GEKKO)
|
2012-06-25 21:20:56 +02:00
|
|
|
#include "../../wii/frontend/rgui.c"
|
|
|
|
#include "../../wii/frontend/list.c"
|
2012-04-14 01:02:37 +02:00
|
|
|
#endif
|