2016-06-20 03:20:14 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2017-03-22 02:09:18 +00:00
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
2016-06-20 03:20:14 +00:00
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2016-09-06 21:52:33 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2016-06-20 03:20:14 +00:00
|
|
|
#include "file_path_special.h"
|
|
|
|
|
|
|
|
const char *file_path_str(enum file_path_enum enum_idx)
|
|
|
|
{
|
2017-04-22 07:54:22 +00:00
|
|
|
const char *str = "null";
|
|
|
|
|
2016-06-20 03:20:14 +00:00
|
|
|
switch (enum_idx)
|
|
|
|
{
|
2016-06-27 05:52:48 +00:00
|
|
|
case FILE_PATH_PROGRAM_NAME:
|
|
|
|
#if defined(IS_SALAMANDER)
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "RetroArch Salamander";
|
2016-06-27 05:52:48 +00:00
|
|
|
#else
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "RetroArch";
|
2016-06-27 05:52:48 +00:00
|
|
|
#endif
|
2017-04-22 07:54:22 +00:00
|
|
|
break;
|
2016-06-30 04:07:44 +00:00
|
|
|
case FILE_PATH_DETECT:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "DETECT";
|
|
|
|
break;
|
2016-07-23 02:36:22 +00:00
|
|
|
case FILE_PATH_CONTENT_BASENAME:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "content.png";
|
|
|
|
break;
|
2016-06-30 03:19:25 +00:00
|
|
|
case FILE_PATH_LUTRO_PLAYLIST:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "Lutro.lpl";
|
|
|
|
break;
|
2016-06-28 09:10:30 +00:00
|
|
|
case FILE_PATH_NUL:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "nul";
|
|
|
|
break;
|
2016-06-28 06:42:50 +00:00
|
|
|
case FILE_PATH_LOG_WARN:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "[WARN]";
|
|
|
|
break;
|
2016-06-28 06:42:50 +00:00
|
|
|
case FILE_PATH_LOG_ERROR:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "[ERROR]";
|
|
|
|
break;
|
2016-06-28 06:42:50 +00:00
|
|
|
case FILE_PATH_LOG_INFO:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "[INFO]";
|
|
|
|
break;
|
2016-07-01 09:16:56 +00:00
|
|
|
case FILE_PATH_CGP_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".cgp";
|
|
|
|
break;
|
2016-07-01 09:16:56 +00:00
|
|
|
case FILE_PATH_GLSLP_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".glslp";
|
|
|
|
break;
|
2016-07-01 09:16:56 +00:00
|
|
|
case FILE_PATH_SLANGP_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".slangp";
|
|
|
|
break;
|
2016-07-01 05:07:06 +00:00
|
|
|
case FILE_PATH_AUTO_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".auto";
|
|
|
|
break;
|
2016-07-01 03:59:36 +00:00
|
|
|
case FILE_PATH_BSV_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".bsv";
|
|
|
|
break;
|
2016-06-29 16:45:12 +00:00
|
|
|
case FILE_PATH_OPT_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".opt";
|
|
|
|
break;
|
2016-06-27 05:18:02 +00:00
|
|
|
case FILE_PATH_CORE_INFO_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".info";
|
|
|
|
break;
|
2016-06-27 06:19:39 +00:00
|
|
|
case FILE_PATH_CONFIG_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".cfg";
|
|
|
|
break;
|
2016-06-29 16:43:00 +00:00
|
|
|
case FILE_PATH_REMAP_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".rmp";
|
|
|
|
break;
|
2016-06-26 08:15:25 +00:00
|
|
|
case FILE_PATH_RTC_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".rtc";
|
|
|
|
break;
|
2016-06-26 07:56:55 +00:00
|
|
|
case FILE_PATH_CHT_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".cht";
|
|
|
|
break;
|
2016-06-26 07:56:55 +00:00
|
|
|
case FILE_PATH_SRM_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".srm";
|
|
|
|
break;
|
2016-06-26 07:56:55 +00:00
|
|
|
case FILE_PATH_STATE_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".state";
|
|
|
|
break;
|
2016-06-26 08:12:28 +00:00
|
|
|
case FILE_PATH_LPL_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".lpl";
|
|
|
|
break;
|
2016-07-23 07:48:29 +00:00
|
|
|
case FILE_PATH_LPL_EXTENSION_NO_DOT:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "lpl";
|
|
|
|
break;
|
2016-07-01 15:04:11 +00:00
|
|
|
case FILE_PATH_PNG_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".png";
|
|
|
|
break;
|
2017-05-13 23:40:52 +00:00
|
|
|
case FILE_PATH_OGG_EXTENSION:
|
|
|
|
str = ".ogg";
|
|
|
|
break;
|
|
|
|
case FILE_PATH_WAV_EXTENSION:
|
2017-05-14 21:46:02 +00:00
|
|
|
str = ".wav";
|
2017-05-13 23:40:52 +00:00
|
|
|
break;
|
2017-08-04 13:05:29 +00:00
|
|
|
case FILE_PATH_MOD_EXTENSION:
|
|
|
|
str = ".mod";
|
|
|
|
break;
|
|
|
|
case FILE_PATH_S3M_EXTENSION:
|
|
|
|
str = ".s3m";
|
|
|
|
break;
|
|
|
|
case FILE_PATH_XM_EXTENSION:
|
|
|
|
str = ".xm";
|
|
|
|
break;
|
2016-07-23 09:28:24 +00:00
|
|
|
case FILE_PATH_JPEG_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".jpeg";
|
|
|
|
break;
|
2016-07-23 09:28:24 +00:00
|
|
|
case FILE_PATH_BMP_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".bmp";
|
|
|
|
break;
|
2016-07-23 09:28:24 +00:00
|
|
|
case FILE_PATH_TGA_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".tga";
|
|
|
|
break;
|
2016-07-23 09:28:24 +00:00
|
|
|
case FILE_PATH_JPG_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".jpg";
|
|
|
|
break;
|
2016-06-27 23:10:58 +00:00
|
|
|
case FILE_PATH_UPS_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".ups";
|
|
|
|
break;
|
2016-06-27 23:10:58 +00:00
|
|
|
case FILE_PATH_IPS_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".ips";
|
|
|
|
break;
|
2016-06-27 23:10:58 +00:00
|
|
|
case FILE_PATH_BPS_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".bps";
|
|
|
|
break;
|
2016-06-28 09:22:44 +00:00
|
|
|
case FILE_PATH_RDB_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".rdb";
|
|
|
|
break;
|
2016-07-01 03:53:55 +00:00
|
|
|
case FILE_PATH_ZIP_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".zip";
|
|
|
|
break;
|
2016-07-01 03:53:55 +00:00
|
|
|
case FILE_PATH_7Z_EXTENSION:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".7z";
|
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_INDEX_URL:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".index";
|
|
|
|
break;
|
2016-06-20 21:39:40 +00:00
|
|
|
case FILE_PATH_INDEX_DIRS_URL:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".index-dirs";
|
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_INDEX_EXTENDED_URL:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = ".index-extended";
|
|
|
|
break;
|
2017-01-19 05:52:53 +00:00
|
|
|
case FILE_PATH_NETPLAY_ROOM_LIST_URL:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "registry.lpl";
|
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_CORE_THUMBNAILS_URL:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "http://thumbnailpacks.libretro.com";
|
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_LAKKA_URL:
|
2017-05-03 14:52:25 +00:00
|
|
|
str = "http://le.builds.lakka.tv";
|
2017-04-22 07:54:22 +00:00
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_SHADERS_GLSL_ZIP:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "shaders_glsl.zip";
|
|
|
|
break;
|
2016-10-08 20:16:01 +00:00
|
|
|
case FILE_PATH_SHADERS_SLANG_ZIP:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "shaders_slang.zip";
|
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_SHADERS_CG_ZIP:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "shaders_cg.zip";
|
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_DATABASE_RDB_ZIP:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "database-rdb.zip";
|
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_OVERLAYS_ZIP:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "overlays.zip";
|
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_CORE_INFO_ZIP:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "info.zip";
|
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_CHEATS_ZIP:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "cheats.zip";
|
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_ASSETS_ZIP:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "assets.zip";
|
|
|
|
break;
|
2016-06-20 19:03:54 +00:00
|
|
|
case FILE_PATH_AUTOCONFIG_ZIP:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "autoconfig.zip";
|
|
|
|
break;
|
2016-06-20 03:20:14 +00:00
|
|
|
case FILE_PATH_CONTENT_HISTORY:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "content_history.lpl";
|
|
|
|
break;
|
2017-08-12 15:10:14 +00:00
|
|
|
case FILE_PATH_CONTENT_FAVORITES:
|
|
|
|
str = "content_favorites.lpl";
|
|
|
|
break;
|
2016-07-30 20:32:52 +00:00
|
|
|
case FILE_PATH_CONTENT_MUSIC_HISTORY:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "content_music_history.lpl";
|
|
|
|
break;
|
2016-07-30 20:32:52 +00:00
|
|
|
case FILE_PATH_CONTENT_VIDEO_HISTORY:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "content_video_history.lpl";
|
|
|
|
break;
|
2016-07-30 20:32:52 +00:00
|
|
|
case FILE_PATH_CONTENT_IMAGE_HISTORY:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "content_image_history.lpl";
|
|
|
|
break;
|
2016-06-20 03:29:53 +00:00
|
|
|
case FILE_PATH_CORE_OPTIONS_CONFIG:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "retroarch-core-options.cfg";
|
|
|
|
break;
|
2016-06-20 03:20:14 +00:00
|
|
|
case FILE_PATH_MAIN_CONFIG:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "retroarch.cfg";
|
|
|
|
break;
|
2016-06-27 05:47:15 +00:00
|
|
|
case FILE_PATH_BACKGROUND_IMAGE:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "bg.png";
|
|
|
|
break;
|
2016-06-27 05:47:15 +00:00
|
|
|
case FILE_PATH_TTF_FONT:
|
2017-04-22 07:54:22 +00:00
|
|
|
str = "font.ttf";
|
|
|
|
break;
|
2016-06-20 03:20:14 +00:00
|
|
|
case FILE_PATH_UNKNOWN:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2017-04-22 07:54:22 +00:00
|
|
|
return str;
|
2016-06-20 03:20:14 +00:00
|
|
|
}
|