mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
51922ea5be
2934af8af0 Added Patreon sponsor link. c8f18b6f0f Getting current program only when required for vglDrawObjects. 4c5d136b0d Added directive to enable vitaShaRK usage from cmd. 4a10df3be5 Minor adjustments and bugfixes. 14a0124acf Added GL_TEXTURE_LOD_BIAS support. 40c8c6205e Added GL_NONE def and fixed glUniform4f impl. 868079c51e Added glUniform4f implementation. 0a682cbad2 Typo fix. be3ce61ae7 Added GL_DEPTH_BITS and GL_STENCIL_BITS support. 21e6d1d330 Added runtime shader compiler support. 696e40bc62 Beautify error handler code. 537b37b110 Added glUniform3fv implementation. 7dd1403015 Fixed GLenum size and added missing types defines. 0c75f27ff1 Moved to NEON optimized memcpy usage. 98951895de Added gluPerspective implementation. 23e0b0b309 Fix for vglInitExtended not working on sys app mode. 4989c33ef5 Run clang-format. 429f1c1d8a Added system mode support. 9231680d02 Initializing sceGxm before free mem checking on vglInitExtended. 091e5e7882 Added vglInitWithCustomSizes. f4c646ea78 Added vglSetParamBufferSize. 1b9a063c41 Beautify some code. 089e81efc5 Fix for duplicated symbols 789dcbf812 Typo fix in readRGBA4444. 1514a4b2cb Disabling lto due to it being broken on vitasdk with gcc 9.1. fca18d9ab7 Added support for RGBA4444 texture format. d449f12808 Added support for RGB565 texture format. git-subtree-dir: deps/vitaGL git-subtree-split: 2934af8af083a9acf598ab75233c518a251c6f0d
249 lines
6.7 KiB
C
249 lines
6.7 KiB
C
/* RetroArch - A frontend for libretro.
|
|
* Copyright (C) 2011-2017 - 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/>.
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include "file_path_special.h"
|
|
|
|
const char *file_path_str(enum file_path_enum enum_idx)
|
|
{
|
|
const char *str = "null";
|
|
|
|
switch (enum_idx)
|
|
{
|
|
case FILE_PATH_DETECT:
|
|
str = "DETECT";
|
|
break;
|
|
case FILE_PATH_CONTENT_BASENAME:
|
|
str = "content.png";
|
|
break;
|
|
case FILE_PATH_LUTRO_PLAYLIST:
|
|
str = "Lutro.lpl";
|
|
break;
|
|
case FILE_PATH_NUL:
|
|
str = "nul";
|
|
break;
|
|
case FILE_PATH_CGP_EXTENSION:
|
|
str = ".cgp";
|
|
break;
|
|
case FILE_PATH_GLSLP_EXTENSION:
|
|
str = ".glslp";
|
|
break;
|
|
case FILE_PATH_SLANGP_EXTENSION:
|
|
str = ".slangp";
|
|
break;
|
|
case FILE_PATH_AUTO_EXTENSION:
|
|
str = ".auto";
|
|
break;
|
|
case FILE_PATH_BSV_EXTENSION:
|
|
str = ".bsv";
|
|
break;
|
|
case FILE_PATH_OPT_EXTENSION:
|
|
str = ".opt";
|
|
break;
|
|
case FILE_PATH_CORE_INFO_EXTENSION:
|
|
str = ".info";
|
|
break;
|
|
case FILE_PATH_CONFIG_EXTENSION:
|
|
str = ".cfg";
|
|
break;
|
|
case FILE_PATH_REMAP_EXTENSION:
|
|
str = ".rmp";
|
|
break;
|
|
case FILE_PATH_RTC_EXTENSION:
|
|
str = ".rtc";
|
|
break;
|
|
case FILE_PATH_CHT_EXTENSION:
|
|
str = ".cht";
|
|
break;
|
|
case FILE_PATH_SRM_EXTENSION:
|
|
str = ".srm";
|
|
break;
|
|
case FILE_PATH_STATE_EXTENSION:
|
|
str = ".state";
|
|
break;
|
|
case FILE_PATH_LPL_EXTENSION:
|
|
str = ".lpl";
|
|
break;
|
|
case FILE_PATH_LPL_EXTENSION_NO_DOT:
|
|
str = "lpl";
|
|
break;
|
|
case FILE_PATH_PNG_EXTENSION:
|
|
str = ".png";
|
|
break;
|
|
case FILE_PATH_MP3_EXTENSION:
|
|
str = ".mp3";
|
|
break;
|
|
case FILE_PATH_FLAC_EXTENSION:
|
|
str = ".flac";
|
|
break;
|
|
case FILE_PATH_OGG_EXTENSION:
|
|
str = ".ogg";
|
|
break;
|
|
case FILE_PATH_WAV_EXTENSION:
|
|
str = ".wav";
|
|
break;
|
|
case FILE_PATH_MOD_EXTENSION:
|
|
str = ".mod";
|
|
break;
|
|
case FILE_PATH_S3M_EXTENSION:
|
|
str = ".s3m";
|
|
break;
|
|
case FILE_PATH_XM_EXTENSION:
|
|
str = ".xm";
|
|
break;
|
|
case FILE_PATH_JPEG_EXTENSION:
|
|
str = ".jpeg";
|
|
break;
|
|
case FILE_PATH_BMP_EXTENSION:
|
|
str = ".bmp";
|
|
break;
|
|
case FILE_PATH_TGA_EXTENSION:
|
|
str = ".tga";
|
|
break;
|
|
case FILE_PATH_JPG_EXTENSION:
|
|
str = ".jpg";
|
|
break;
|
|
case FILE_PATH_UPS_EXTENSION:
|
|
str = ".ups";
|
|
break;
|
|
case FILE_PATH_IPS_EXTENSION:
|
|
str = ".ips";
|
|
break;
|
|
case FILE_PATH_BPS_EXTENSION:
|
|
str = ".bps";
|
|
break;
|
|
case FILE_PATH_RDB_EXTENSION:
|
|
str = ".rdb";
|
|
break;
|
|
case FILE_PATH_RDB_EXTENSION_NO_DOT:
|
|
str = "rdb";
|
|
break;
|
|
case FILE_PATH_ZIP_EXTENSION:
|
|
str = ".zip";
|
|
break;
|
|
case FILE_PATH_7Z_EXTENSION:
|
|
str = ".7z";
|
|
break;
|
|
case FILE_PATH_INDEX_URL:
|
|
str = ".index";
|
|
break;
|
|
case FILE_PATH_INDEX_DIRS_URL:
|
|
str = ".index-dirs";
|
|
break;
|
|
case FILE_PATH_INDEX_EXTENDED_URL:
|
|
str = ".index-extended";
|
|
break;
|
|
case FILE_PATH_NETPLAY_ROOM_LIST_URL:
|
|
str = "registry.lpl";
|
|
break;
|
|
case FILE_PATH_CORE_THUMBNAILS_URL:
|
|
str = "http://thumbnails.libretro.com";
|
|
break;
|
|
case FILE_PATH_CORE_THUMBNAILPACKS_URL:
|
|
str = "http://thumbnailpacks.libretro.com";
|
|
break;
|
|
case FILE_PATH_LAKKA_URL:
|
|
#ifdef HAVE_LAKKA_NIGHTLY
|
|
str = "http://nightly.builds.lakka.tv/.updater";
|
|
#else
|
|
str = "http://le.builds.lakka.tv";
|
|
#endif
|
|
break;
|
|
case FILE_PATH_SHADERS_GLSL_ZIP:
|
|
str = "shaders_glsl.zip";
|
|
break;
|
|
case FILE_PATH_SHADERS_SLANG_ZIP:
|
|
str = "shaders_slang.zip";
|
|
break;
|
|
case FILE_PATH_SHADERS_CG_ZIP:
|
|
str = "shaders_cg.zip";
|
|
break;
|
|
case FILE_PATH_DATABASE_RDB_ZIP:
|
|
str = "database-rdb.zip";
|
|
break;
|
|
case FILE_PATH_OVERLAYS_ZIP:
|
|
str = "overlays.zip";
|
|
break;
|
|
case FILE_PATH_CORE_INFO_ZIP:
|
|
str = "info.zip";
|
|
break;
|
|
case FILE_PATH_CHEATS_ZIP:
|
|
str = "cheats.zip";
|
|
break;
|
|
case FILE_PATH_ASSETS_ZIP:
|
|
str = "assets.zip";
|
|
break;
|
|
case FILE_PATH_AUTOCONFIG_ZIP:
|
|
str = "autoconfig.zip";
|
|
break;
|
|
case FILE_PATH_CONTENT_HISTORY:
|
|
str = "content_history.lpl";
|
|
break;
|
|
case FILE_PATH_CONTENT_FAVORITES:
|
|
str = "content_favorites.lpl";
|
|
break;
|
|
case FILE_PATH_CONTENT_MUSIC_HISTORY:
|
|
str = "content_music_history.lpl";
|
|
break;
|
|
case FILE_PATH_CONTENT_VIDEO_HISTORY:
|
|
str = "content_video_history.lpl";
|
|
break;
|
|
case FILE_PATH_CONTENT_IMAGE_HISTORY:
|
|
str = "content_image_history.lpl";
|
|
break;
|
|
case FILE_PATH_CORE_OPTIONS_CONFIG:
|
|
str = "retroarch-core-options.cfg";
|
|
break;
|
|
case FILE_PATH_MAIN_CONFIG:
|
|
str = "retroarch.cfg";
|
|
break;
|
|
case FILE_PATH_BACKGROUND_IMAGE:
|
|
str = "bg.png";
|
|
break;
|
|
case FILE_PATH_TTF_FONT:
|
|
str = "font.ttf";
|
|
break;
|
|
case FILE_PATH_RUNTIME_EXTENSION:
|
|
str = ".lrtl";
|
|
break;
|
|
case FILE_PATH_DEFAULT_EVENT_LOG:
|
|
str = "retroarch.log";
|
|
break;
|
|
case FILE_PATH_EVENT_LOG_EXTENSION:
|
|
str = ".log";
|
|
break;
|
|
case FILE_PATH_DISK_CONTROL_INDEX_EXTENSION:
|
|
str = ".ldci";
|
|
break;
|
|
case FILE_PATH_CORE_BACKUP_EXTENSION:
|
|
str = ".lcbk";
|
|
break;
|
|
case FILE_PATH_CORE_BACKUP_EXTENSION_NO_DOT:
|
|
str = "lcbk";
|
|
break;
|
|
case FILE_PATH_LOCK_EXTENSION:
|
|
str = ".lck";
|
|
break;
|
|
case FILE_PATH_UNKNOWN:
|
|
default:
|
|
break;
|
|
}
|
|
|
|
return str;
|
|
}
|