/* 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 . */ #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_PROGRAM_NAME: #if defined(IS_SALAMANDER) str = "RetroArch Salamander"; #else str = "RetroArch"; #endif break; 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_LOG_WARN: str = "[WARN]"; break; case FILE_PATH_LOG_ERROR: str = "[ERROR]"; break; case FILE_PATH_LOG_INFO: str = "[INFO]"; 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_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_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://thumbnailpacks.libretro.com"; break; case FILE_PATH_LAKKA_URL: str = "http://le.builds.lakka.tv"; 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_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_UNKNOWN: default: break; } return str; }