RetroArch/file_path_str.c

125 lines
3.9 KiB
C
Raw Normal View History

2016-06-20 03:20:14 +00:00
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2016 - 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/>.
*/
#include "file_path_special.h"
const char *file_path_str(enum file_path_enum enum_idx)
{
switch (enum_idx)
{
2016-06-27 05:52:48 +00:00
case FILE_PATH_PROGRAM_NAME:
#if defined(IS_SALAMANDER)
return "RetroArch Salamander";
#else
return "RetroArch";
#endif
2016-06-30 04:07:44 +00:00
case FILE_PATH_DETECT:
return "DETECT";
2016-06-30 03:19:25 +00:00
case FILE_PATH_LUTRO_PLAYLIST:
return "Lutro.lpl";
2016-06-28 09:10:30 +00:00
case FILE_PATH_NUL:
return "nul";
2016-06-28 06:42:50 +00:00
case FILE_PATH_LOG_WARN:
return "[WARN]";
case FILE_PATH_LOG_ERROR:
return "[ERROR]";
case FILE_PATH_LOG_INFO:
return "[INFO]";
2016-07-01 09:16:56 +00:00
case FILE_PATH_CGP_EXTENSION:
return ".cgp";
case FILE_PATH_GLSLP_EXTENSION:
return ".glslp";
case FILE_PATH_SLANGP_EXTENSION:
return ".slangp";
2016-07-01 05:07:06 +00:00
case FILE_PATH_AUTO_EXTENSION:
return ".auto";
2016-07-01 03:59:36 +00:00
case FILE_PATH_BSV_EXTENSION:
return ".bsv";
2016-06-29 16:45:12 +00:00
case FILE_PATH_OPT_EXTENSION:
return ".opt";
2016-06-27 05:18:02 +00:00
case FILE_PATH_CORE_INFO_EXTENSION:
return ".info";
2016-06-27 06:19:39 +00:00
case FILE_PATH_CONFIG_EXTENSION:
return ".cfg";
2016-06-29 16:43:00 +00:00
case FILE_PATH_REMAP_EXTENSION:
return ".rmp";
2016-06-26 08:15:25 +00:00
case FILE_PATH_RTC_EXTENSION:
return ".rtc";
2016-06-26 07:56:55 +00:00
case FILE_PATH_CHT_EXTENSION:
return ".cht";
case FILE_PATH_SRM_EXTENSION:
return ".srm";
case FILE_PATH_STATE_EXTENSION:
return ".state";
2016-06-26 08:12:28 +00:00
case FILE_PATH_LPL_EXTENSION:
return ".lpl";
2016-07-01 15:04:11 +00:00
case FILE_PATH_PNG_EXTENSION:
return ".png";
2016-06-27 23:10:58 +00:00
case FILE_PATH_UPS_EXTENSION:
return ".ups";
case FILE_PATH_IPS_EXTENSION:
return ".ips";
case FILE_PATH_BPS_EXTENSION:
return ".bps";
2016-06-28 09:22:44 +00:00
case FILE_PATH_RDB_EXTENSION:
return ".rdb";
case FILE_PATH_ZIP_EXTENSION:
return ".zip";
case FILE_PATH_7Z_EXTENSION:
return ".7z";
2016-06-20 19:03:54 +00:00
case FILE_PATH_INDEX_URL:
return ".index";
2016-06-20 21:39:40 +00:00
case FILE_PATH_INDEX_DIRS_URL:
return ".index-dirs";
2016-06-20 19:03:54 +00:00
case FILE_PATH_INDEX_EXTENDED_URL:
return ".index-extended";
case FILE_PATH_CORE_THUMBNAILS_URL:
return "http://thumbnailpacks.libretro.com";
case FILE_PATH_LAKKA_URL:
return "http://mirror.lakka.tv/nightly";
case FILE_PATH_SHADERS_GLSL_ZIP:
return "shaders_glsl.zip";
case FILE_PATH_SHADERS_CG_ZIP:
return "shaders_cg.zip";
case FILE_PATH_DATABASE_RDB_ZIP:
return "database-rdb.zip";
case FILE_PATH_OVERLAYS_ZIP:
return "overlays.zip";
case FILE_PATH_CORE_INFO_ZIP:
return "info.zip";
case FILE_PATH_CHEATS_ZIP:
return "cheats.zip";
case FILE_PATH_ASSETS_ZIP:
return "assets.zip";
case FILE_PATH_AUTOCONFIG_ZIP:
return "autoconfig.zip";
2016-06-20 03:20:14 +00:00
case FILE_PATH_CONTENT_HISTORY:
return "content_history.lpl";
2016-06-20 03:29:53 +00:00
case FILE_PATH_CORE_OPTIONS_CONFIG:
return "retroarch-core-options.cfg";
2016-06-20 03:20:14 +00:00
case FILE_PATH_MAIN_CONFIG:
return "retroarch.cfg";
2016-06-27 05:47:15 +00:00
case FILE_PATH_BACKGROUND_IMAGE:
return "bg.png";
case FILE_PATH_TTF_FONT:
return "font.ttf";
2016-06-20 03:20:14 +00:00
case FILE_PATH_UNKNOWN:
default:
break;
}
return "null";
}