RetroArch/console/griffin/griffin.c

418 lines
11 KiB
C

/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
* Copyright (C) 2011-2012 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* 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.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#if defined(_XBOX)
#include "../../msvc/msvc_compat.h"
#endif
#ifdef RARCH_CONSOLE
/*============================================================
CONSOLE EXTENSIONS
============================================================ */
#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
#ifdef HAVE_CONFIGFILE
#include "../rarch_console_config.c"
#endif
#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"
#ifdef HAVE_LIBRETRO_MANAGEMENT
#include "../rarch_console_libretro_mgmt.c"
#endif
#endif
/*============================================================
PERFORMANCE
============================================================ */
#ifdef ANDROID
#include "../../android/native/jni/cpufeatures.c"
#endif
#include "../../performance.c"
/*============================================================
COMPATIBILITY
============================================================ */
#include "../../compat/compat.c"
/*============================================================
CONFIG FILE
============================================================ */
#ifdef _XBOX
#undef __RARCH_POSIX_STRING_H
#undef __RARCH_MSVC_COMPAT_H
#undef strcasecmp
#endif
#ifdef HAVE_CONFIGFILE
#include "../../conf/config_file.c"
#endif
/*============================================================
CHEATS
============================================================ */
#ifdef HAVE_XML
#include "../../cheats.c"
#include "../../hash.c"
#endif
/*============================================================
VIDEO CONTEXT
============================================================ */
#ifdef HAVE_VID_CONTEXT
#include "../../gfx/gfx_context.c"
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
#include "../../gfx/context/ps3_ctx.c"
#elif defined(_XBOX)
#include "../../gfx/context/xdk_ctx.c"
#elif defined(ANDROID)
#include "../../gfx/context/androidegl_ctx.c"
#endif
#endif
/*============================================================
VIDEO SHADERS
============================================================ */
#ifdef HAVE_CG
#include "../../gfx/shader_cg.c"
#endif
#ifdef HAVE_HLSL
#include "../../gfx/shader_hlsl.c"
#endif
#ifdef HAVE_GLSL
#include "../../gfx/shader_glsl.c"
#endif
/*============================================================
VIDEO IMAGE
============================================================ */
#if defined(__CELLOS_LV2__)
#include "../../ps3/image.c"
#elif defined(_XBOX1)
#include "../../xbox1/image.c"
#elif defined(ANDROID)
#include "../../gfx/image.c"
#endif
/*============================================================
VIDEO DRIVER
============================================================ */
#if defined(HAVE_OPENGL)
#include "../../gfx/math/matrix.c"
#include "../../gfx/gl.c"
#elif defined(GEKKO)
#ifdef HW_RVL
#include "../../wii/vi_encoder.c"
#include "../../wii/mem2_manager.c"
#endif
#include "../../gx/gx_video.c"
#endif
#ifdef HAVE_DYLIB
#include "../../gfx/ext_gfx.c"
#endif
#include "../../gfx/gfx_common.c"
#ifdef _XBOX
#include "../../xdk/xdk_resources.cpp"
#include "../../xdk/xdk_d3d.cpp"
#endif
#include "../../gfx/null.c"
/*============================================================
FONTS
============================================================ */
#if defined(HAVE_OPENGL) || defined(HAVE_D3D8) || defined(HAVE_D3D9)
#if defined(HAVE_FREETYPE)
#include "../../gfx/fonts/freetype.c"
#include "../../gfx/fonts/fonts.c"
#elif defined(HAVE_LIBDBGFONT)
#include "../../gfx/fonts/ps3_libdbgfont.c"
#elif defined(_XBOX1)
#include "../../gfx/fonts/xdk1_xfonts.c"
#elif defined(_XBOX360)
#include "../../gfx/fonts/xdk360_fonts.cpp"
#else
#include "../../gfx/fonts/null_fonts.c"
#endif
#endif
/*============================================================
INPUT
============================================================ */
#if defined(__CELLOS_LV2__)
#include "../../ps3/ps3_input.c"
#elif defined(GEKKO)
#include "../../gx/gx_input.c"
#elif defined(_XBOX)
#include "../../xdk/xdk_xinput_input.c"
#elif defined(ANDROID)
#include "../../android/native/jni/input_android.c"
#endif
#include "../../input/null.c"
/*============================================================
STATE TRACKER
============================================================ */
#include "../../gfx/state_tracker.c"
/*============================================================
FIFO BUFFER
============================================================ */
#include "../../fifo_buffer.c"
/*============================================================
AUDIO HERMITE
============================================================ */
#include "../../audio/hermite.c"
/*============================================================
RSOUND
============================================================ */
#ifdef HAVE_RSOUND
#include "../../deps/librsound/librsound.c"
#include "../../audio/rsound.c"
#endif
/*============================================================
AUDIO UTILS
============================================================ */
#include "../../audio/utils.c"
/*============================================================
AUDIO
============================================================ */
#if defined(__CELLOS_LV2__)
#include "../../ps3/ps3_audio.c"
#elif defined(_XBOX360)
#include "../../360/xdk360_audio.cpp"
#elif defined(GEKKO)
#include "../../gx/gx_audio.c"
#endif
#ifdef HAVE_DSOUND
#include "../../audio/dsound.c"
#endif
#ifdef HAVE_DYLIB
#include "../../audio/ext_audio.c"
#endif
#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"
/*============================================================
DYNAMIC
============================================================ */
#include "../../dynamic.c"
/*============================================================
FILE
============================================================ */
#ifdef HAVE_FILEBROWSER
#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(GEKKO)
#include "../../gx/frontend/main.c"
#elif defined(__CELLOS_LV2__)
#include "../../ps3/frontend/main.c"
#elif defined(ANDROID)
#include "../../android/native/jni/main.c"
#endif
/*============================================================
RETROARCH
============================================================ */
#include "../../retroarch.c"
/*============================================================
THREAD
============================================================ */
#ifdef HAVE_THREAD
#include "../../thread.c"
#ifdef ANDROID
#include "../../autosave.c"
#endif
#endif
/*============================================================
NETPLAY
============================================================ */
#ifdef HAVE_NETPLAY
#include "../../netplay.c"
#endif
/*============================================================
SCREENSHOTS
============================================================ */
#ifdef HAVE_SCREENSHOTS
#include "../../screenshot.c"
#endif
/*============================================================
MENU
============================================================ */
#ifdef HAVE_RMENU
#include "../rmenu/rmenu_stack.c"
#include "../rmenu/rmenu.c"
#endif
#ifdef HAVE_RGUI
#include "../rgui/rgui.c"
#include "../rgui/list.c"
#endif
#if defined(_XBOX360)
#include "../../360/frontend-xdk/menu.cpp"
#elif defined(_XBOX1)
#include "../../xbox1/frontend/RetroLaunch/IoSupport.cpp"
#endif
#ifdef __cplusplus
extern "C" {
#endif
/*============================================================
RZLIB
============================================================ */
#ifdef WANT_RZLIB
#include "../../deps/rzlib/rzlib.c"
#endif
/*============================================================
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/libxml_threads.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/xmlsave.c"
#include "../../deps/libxml2/xmlstring.c"
#endif
#ifdef __cplusplus
}
#endif