RetroArch/console/griffin/griffin.c

456 lines
12 KiB
C
Raw Normal View History

2012-04-21 21:13:50 +00:00
/* RetroArch - A frontend for libretro.
2013-01-01 00:37:37 +00:00
* Copyright (C) 2010-2013 - Hans-Kristian Arntzen
* Copyright (C) 2011-2013 - 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(_XBOX)
#include "../../msvc/msvc_compat.h"
#endif
/*============================================================
LOGGERS
============================================================ */
#if defined(HAVE_LOGGER) && defined(__PSL1GHT__)
#include "../logger/psl1ght_logger.c"
2012-12-16 03:13:31 +00:00
#elif defined(HAVE_LOGGER) && !defined(ANDROID)
#include "../logger/logger.c"
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
CONSOLE EXTENSIONS
============================================================ */
2012-12-13 14:32:35 +00:00
#ifdef RARCH_CONSOLE
2012-11-03 07:42:33 +00:00
#include "../rarch_console_video.c"
#ifdef HW_DOL
#include "../../ngc/ssaram.c"
#include "../../ngc/sidestep.c"
#endif
#ifdef HAVE_RSOUND
#include "../rarch_console_rsound.c"
#endif
#ifdef HAVE_DEFAULT_RETROPAD_INPUT
#include "../rarch_console_input.c"
#endif
#endif
2012-04-13 23:02:37 +00:00
#ifdef HAVE_ZLIB
#include "../rarch_zlib.c"
2012-11-03 07:42:33 +00:00
#endif
2012-11-03 07:42:33 +00:00
/*============================================================
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-04-13 23:02:37 +00:00
#include "../../conf/config_file.c"
/*============================================================
CHEATS
============================================================ */
#include "../../cheats.c"
#include "../../hash.c"
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
#if defined(__CELLOS_LV2__)
#include "../../gfx/context/ps3_ctx.c"
#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"
#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
============================================================ */
#if defined(__CELLOS_LV2__)
2012-04-13 23:02:37 +00:00
#include "../../ps3/image.c"
#elif defined(_XBOX1)
#include "../../xdk/image.c"
#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-04-14 11:42:25 +00:00
#elif 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
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"
#ifdef _XBOX
#include "../../xdk/xdk_resources.cpp"
#endif
2013-01-10 02:34:43 +00:00
#ifdef HAVE_OPENGL
#include "../../gfx/gl.c"
2013-01-10 02:34:43 +00:00
#endif
#ifdef _XBOX
#include "../../xdk/xdk_d3d.cpp"
2013-01-10 02:34:43 +00:00
#endif
#if defined(GEKKO)
#include "../../gx/gx_video.c"
#elif defined(SN_TARGET_PSP2)
#include "../../vita/vita_video.c"
//#elif defined(PSP)
//#include "../../psp1/psp1_video.c"
#elif defined(XENON)
2013-01-10 02:24:38 +00:00
#include "../../xenon/xenon360_video.c"
2013-01-09 04:57:02 +00:00
#endif
#if defined(HAVE_NULLVIDEO)
#include "../../gfx/null.c"
#endif
2012-05-27 02:02:07 +00:00
/*============================================================
FONTS
============================================================ */
#if defined(HAVE_OPENGL) || defined(HAVE_D3D8) || defined(HAVE_D3D9)
2012-12-13 21:49:17 +00:00
#ifdef HAVE_FREETYPE
#include "../../gfx/fonts/freetype.c"
2012-12-13 21:49:17 +00:00
#endif
#include "../../gfx/fonts/fonts.c"
2012-12-13 21:49:17 +00:00
#include "../../gfx/fonts/bitmapfont.c"
2012-12-14 23:17:43 +00:00
#ifdef HAVE_OPENGL
#include "../../gfx/fonts/gl_font.c"
#endif
2012-12-15 02:59:31 +00:00
#ifdef _XBOX
#include "../../gfx/fonts/d3d_font.c"
#endif
#if defined(HAVE_LIBDBGFONT)
2012-11-22 17:02:46 +00:00
#include "../../gfx/fonts/ps_libdbgfont.c"
2012-12-15 01:59:35 +00:00
#elif defined(HAVE_OPENGL)
#include "../../gfx/fonts/gl_raster_font.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-04-13 23:02:37 +00:00
#endif
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
INPUT
============================================================ */
#ifndef RARCH_CONSOLE
#include "../../input/input_common.c"
#endif
#ifdef HAVE_OVERLAY
#include "../../input/overlay.c"
#endif
#ifdef HAVE_WIIUSE
#include "../../wii/wiiuse/classic.c"
#include "../../wii/wiiuse/dynamics.c"
#include "../../wii/wiiuse/events.c"
#include "../../wii/wiiuse/io.c"
#include "../../wii/wiiuse/io_wii.c"
#include "../../wii/wiiuse/ir.c"
#include "../../wii/wiiuse/motion_plus.c"
#include "../../wii/wiiuse/nunchuk.c"
#ifdef HAVE_WIIUSE_SPEAKER
#include "../../wii/wiiuse/speaker.c"
#endif
#include "../../wii/wiiuse/wiiuse.c"
#include "../../wii/wiiuse/wpad.c"
#endif
#if defined(__CELLOS_LV2__)
2012-04-13 23:02:37 +00:00
#include "../../ps3/ps3_input.c"
#elif defined(SN_TARGET_PSP2) || defined(PSP)
#include "../../psp/psp_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"
#elif defined(_XBOX)
#include "../../xdk/xdk_xinput_input.c"
#elif defined(XENON)
2013-01-10 02:24:38 +00:00
#include "../../xenon/xenon360_input.c"
2012-11-03 07:42:33 +00:00
#elif defined(ANDROID)
#include "../../android/native/jni/input_autodetect.c"
2012-11-03 07:42:33 +00:00
#include "../../android/native/jni/input_android.c"
2013-01-09 04:57:02 +00:00
#endif
#if defined(HAVE_NULLINPUT)
#include "../../input/null.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
============================================================ */
#include "../../gfx/state_tracker.c"
/*============================================================
FIFO BUFFER
============================================================ */
#include "../../fifo_buffer.c"
/*============================================================
AUDIO HERMITE
============================================================ */
#ifdef HAVE_SINC
2012-12-02 22:50:32 +00:00
#include "../../audio/sinc.c"
#else
2012-04-13 23:02:37 +00:00
#include "../../audio/hermite.c"
2012-12-02 22:50:32 +00:00
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
RSOUND
============================================================ */
#ifdef HAVE_RSOUND
#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
============================================================ */
#if defined(__CELLOS_LV2__)
2012-04-13 23:02:37 +00:00
#include "../../ps3/ps3_audio.c"
#elif defined(XENON)
2013-01-10 02:24:38 +00:00
#include "../../xenon/xenon360_audio.c"
2012-04-14 11:42:25 +00:00
#elif defined(GEKKO)
2012-08-07 03:24:12 +00:00
#include "../../gx/gx_audio.c"
#endif
#ifdef HAVE_XAUDIO
#include "../../audio/xaudio.c"
2013-01-10 23:27:56 +00:00
#include "../../audio/xaudio-c/xaudio-c.cpp"
#endif
#ifdef HAVE_DSOUND
2012-07-08 16:30:19 +00:00
#include "../../audio/dsound.c"
#endif
#ifdef HAVE_SL
#include "../../audio/opensl.c"
2013-01-09 04:57:02 +00:00
#endif
#if defined(HAVE_NULLAUDIO)
#include "../../audio/null.c"
2012-07-08 16:30:19 +00:00
#endif
2012-09-17 03:31:29 +00:00
#ifdef HAVE_DYLIB
#include "../../audio/ext_audio.c"
#endif
/*============================================================
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
#include "../../frontend/menu/utils/file_browser.c"
2012-04-13 23:02:37 +00:00
#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
============================================================ */
2013-01-08 05:26:02 +00:00
#if defined(XENON)
#include "../../frontend/frontend_xenon.c"
#elif defined(RARCH_CONSOLE) || defined(PSP)
#include "../../frontend/frontend_console.c"
2012-11-03 07:42:33 +00:00
#elif defined(ANDROID)
#include "../../frontend/frontend_android.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
============================================================ */
#if defined(HAVE_THREAD) && defined(XENON)
2012-11-25 04:44:44 +00:00
#include "../../thread/xenon_sdl_threads.c"
#elif defined(HAVE_THREAD)
2012-04-13 23:02:37 +00:00
#include "../../thread.c"
#ifdef ANDROID
2012-11-03 07:42:33 +00:00
#include "../../autosave.c"
2012-04-14 12:08:00 +00:00
#endif
#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
/*============================================================
SCREENSHOTS
============================================================ */
#ifdef HAVE_SCREENSHOTS
#include "../../screenshot.c"
#endif
2012-04-13 23:02:37 +00:00
/*============================================================
MENU
============================================================ */
#if defined(HAVE_RMENU_GUI)
#include "../../frontend/menu/utils/menu_stack.c"
#include "../../frontend/menu/rmenu.c"
#endif
#ifdef HAVE_RGUI
#include "../../frontend/menu/utils/file_list.c"
#include "../../frontend/menu/rgui.c"
#endif
#ifdef HAVE_RMENU
#include "../../frontend/menu/rmenu_settings.c"
2012-06-24 19:25:11 +00:00
#if defined(_XBOX360)
#include "../../frontend/menu/rmenu_xui.cpp"
#elif defined(GEKKO)
#include "../../frontend/menu/rmenu_gx.c"
#endif
2012-04-13 23:02:37 +00:00
#endif
2012-11-20 02:40:39 +00:00
#ifdef __cplusplus
extern "C" {
#endif
/*============================================================
RZLIB
============================================================ */
#ifdef WANT_RZLIB
#include "../../deps/rzlib/rzlib.c"
#endif
2012-11-20 02:40:39 +00:00
/*============================================================
XML
============================================================ */
#define RXML_LIBXML2_COMPAT
#include "../../compat/rxml/rxml.c"
2012-11-20 02:40:39 +00:00
#ifdef __cplusplus
}
2013-01-09 04:57:02 +00:00
#endif