/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2014 - Hans-Kristian Arntzen * Copyright (C) 2011-2021 - Daniel De Matteis * Copyright (C) 2012-2015 - Michael Lelli * Copyright (C) 2014-2017 - Jean-Andr� Santoni * Copyright (C) 2016-2019 - Brad Parker * Copyright (C) 2016-2019 - Andr�s Su�rez (input mapper code) * Copyright (C) 2016-2017 - Gregor Richards (network code) * * 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 . */ #include #include "input/input_driver.h" #ifdef HAVE_OPENXR #include "input/common/input_openxr.h" #endif #ifdef _WIN32 #ifdef _XBOX #include #else #define WIN32_LEAN_AND_MEAN #include #endif #if defined(DEBUG) && defined(HAVE_DRMINGW) #include "exchndl.h" #endif #endif #if defined(DINGUX) #include #include #endif #if (defined(__linux__) || defined(__unix__) || defined(DINGUX)) && !defined(__EMSCRIPTEN__) #include #endif #if defined(_WIN32) && !defined(_XBOX) && !defined(__WINRT__) #include #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_RMP4 #include #endif #ifdef HAVE_VULKAN #include #endif #define VFS_FRONTEND #include #include #include #include #include #include #include #include #include #include #include #include #ifdef __MACH__ #include #endif #ifdef __EMSCRIPTEN__ #include "frontend/drivers/platform_emscripten.h" #endif #ifdef HAVE_LIBNX #include #include "os/libnx/switch_performance_profiles.h" #endif #if defined(ANDROID) #include "os/android/play_feature_delivery.h" #include "frontend/drivers/platform_unix.h" #include "input/drivers/android_input.h" #endif /* Android publishes the device's GLES level as a system property; * SET_HW_RENDER grants GLES versions against it. */ #if defined(ANDROID) && !defined(RUNLOOP_GLES_VERSION_PROPERTY) #define RUNLOOP_GLES_VERSION_PROPERTY #endif #ifdef RUNLOOP_GLES_VERSION_PROPERTY #include #endif #if defined(ANDROID) && defined(HAVE_SAF) bool android_get_vfs_authorized_locations( struct retro_vfs_authorized_locations *locations); #endif #ifdef HAVE_PRESENCE #include "network/presence.h" #endif #ifdef HAVE_DISCORD #include "network/discord.h" #endif #include "config.def.h" #include "runtime_file.h" #include "runloop.h" #include "camera/camera_driver.h" #include "location_driver.h" #include "record/record_driver.h" #include "record/record_driver.h" #include "msg_hash_lbl_str.h" #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef HAVE_NETWORKING #include #include #endif #include