RetroArch/file_path_special.h

135 lines
4.2 KiB
C
Raw Normal View History

2016-05-01 15:07:45 +02:00
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
2019-06-23 18:23:39 -04:00
* Copyright (C) 2016-2019 - Brad Parker
2017-11-23 06:58:19 -05:00
*
2016-05-01 15:07:45 +02: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/>.
*/
#ifndef _FILE_PATH_SPECIAL_H
#define _FILE_PATH_SPECIAL_H
#include <stdint.h>
#include <stddef.h>
#include <boolean.h>
2017-12-30 13:45:29 +01:00
#include <retro_common_api.h>
2017-12-30 13:35:47 +01:00
#include <retro_environment.h>
RETRO_BEGIN_DECLS
2016-05-01 15:07:45 +02:00
2016-06-20 05:11:01 +02:00
enum file_path_enum
{
FILE_PATH_UNKNOWN = 0,
2016-07-23 04:36:22 +02:00
FILE_PATH_CONTENT_BASENAME,
2016-06-30 06:07:44 +02:00
FILE_PATH_DETECT,
2016-06-28 11:10:30 +02:00
FILE_PATH_NUL,
2016-06-30 05:19:25 +02:00
FILE_PATH_LUTRO_PLAYLIST,
2016-06-20 05:20:14 +02:00
FILE_PATH_CONTENT_HISTORY,
2017-08-12 17:10:14 +02:00
FILE_PATH_CONTENT_FAVORITES,
FILE_PATH_CONTENT_MUSIC_HISTORY,
FILE_PATH_CONTENT_VIDEO_HISTORY,
FILE_PATH_CONTENT_IMAGE_HISTORY,
2016-06-27 07:47:15 +02:00
FILE_PATH_BACKGROUND_IMAGE,
FILE_PATH_TTF_FONT,
2016-06-20 05:29:53 +02:00
FILE_PATH_MAIN_CONFIG,
2016-06-20 21:03:54 +02:00
FILE_PATH_CORE_OPTIONS_CONFIG,
FILE_PATH_ASSETS_ZIP,
FILE_PATH_AUTOCONFIG_ZIP,
FILE_PATH_CORE_INFO_ZIP,
FILE_PATH_OVERLAYS_ZIP,
FILE_PATH_DATABASE_RDB_ZIP,
2016-09-05 22:49:31 -05:00
FILE_PATH_SHADERS_SLANG_ZIP,
2016-06-20 21:03:54 +02:00
FILE_PATH_SHADERS_GLSL_ZIP,
FILE_PATH_SHADERS_CG_ZIP,
FILE_PATH_CHEATS_ZIP,
FILE_PATH_LAKKA_URL,
FILE_PATH_CORE_THUMBNAILS_URL,
FILE_PATH_CORE_THUMBNAILPACKS_URL,
2016-06-20 23:39:40 +02:00
FILE_PATH_INDEX_DIRS_URL,
2017-01-19 00:52:53 -05:00
FILE_PATH_NETPLAY_ROOM_LIST_URL,
2016-06-20 21:03:54 +02:00
FILE_PATH_INDEX_URL,
2016-06-26 09:56:55 +02:00
FILE_PATH_INDEX_EXTENDED_URL,
2016-07-01 11:16:56 +02:00
FILE_PATH_CGP_EXTENSION,
FILE_PATH_GLSLP_EXTENSION,
FILE_PATH_SLANGP_EXTENSION,
2016-06-26 09:56:55 +02:00
FILE_PATH_SRM_EXTENSION,
2016-07-01 17:04:11 +02:00
FILE_PATH_PNG_EXTENSION,
FILE_PATH_BMP_EXTENSION,
FILE_PATH_TGA_EXTENSION,
FILE_PATH_JPEG_EXTENSION,
FILE_PATH_JPG_EXTENSION,
2016-06-28 01:10:58 +02:00
FILE_PATH_UPS_EXTENSION,
2016-06-29 18:45:12 +02:00
FILE_PATH_OPT_EXTENSION,
2016-06-28 01:10:58 +02:00
FILE_PATH_IPS_EXTENSION,
FILE_PATH_BPS_EXTENSION,
2016-06-26 09:56:55 +02:00
FILE_PATH_STATE_EXTENSION,
2016-06-26 10:15:25 +02:00
FILE_PATH_RTC_EXTENSION,
2016-06-29 18:43:00 +02:00
FILE_PATH_REMAP_EXTENSION,
2016-06-26 10:12:28 +02:00
FILE_PATH_CHT_EXTENSION,
2016-06-27 07:18:02 +02:00
FILE_PATH_LPL_EXTENSION,
FILE_PATH_LPL_EXTENSION_NO_DOT,
2016-06-28 11:22:44 +02:00
FILE_PATH_RDB_EXTENSION,
2019-11-29 17:13:35 +00:00
FILE_PATH_RDB_EXTENSION_NO_DOT,
2016-07-01 05:59:36 +02:00
FILE_PATH_BSV_EXTENSION,
2016-07-01 07:07:06 +02:00
FILE_PATH_AUTO_EXTENSION,
FILE_PATH_ZIP_EXTENSION,
FILE_PATH_7Z_EXTENSION,
2017-05-14 01:40:52 +02:00
FILE_PATH_OGG_EXTENSION,
2018-04-28 14:18:04 +02:00
FILE_PATH_MP3_EXTENSION,
FILE_PATH_FLAC_EXTENSION,
2017-05-14 01:40:52 +02:00
FILE_PATH_WAV_EXTENSION,
FILE_PATH_MOD_EXTENSION,
FILE_PATH_S3M_EXTENSION,
FILE_PATH_XM_EXTENSION,
2016-06-27 08:19:39 +02:00
FILE_PATH_CONFIG_EXTENSION,
2019-02-27 16:19:29 +00:00
FILE_PATH_CORE_INFO_EXTENSION,
2019-03-21 16:56:24 +00:00
FILE_PATH_RUNTIME_EXTENSION,
FILE_PATH_DEFAULT_EVENT_LOG,
FILE_PATH_EVENT_LOG_EXTENSION,
FILE_PATH_DISK_CONTROL_INDEX_EXTENSION,
FILE_PATH_CORE_BACKUP_EXTENSION,
FILE_PATH_CORE_BACKUP_EXTENSION_NO_DOT,
FILE_PATH_LOCK_EXTENSION
2016-06-20 05:11:01 +02:00
};
2016-06-11 19:55:27 +02:00
enum application_special_type
{
2016-06-11 19:55:27 +02:00
APPLICATION_SPECIAL_NONE = 0,
2016-06-11 21:51:28 +02:00
APPLICATION_SPECIAL_DIRECTORY_AUTOCONFIG,
APPLICATION_SPECIAL_DIRECTORY_CONFIG,
APPLICATION_SPECIAL_DIRECTORY_ASSETS_PKG,
APPLICATION_SPECIAL_DIRECTORY_ASSETS_PKG_AR_FONT,
APPLICATION_SPECIAL_DIRECTORY_ASSETS_PKG_CJK_FONT,
2016-06-11 19:55:27 +02:00
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI,
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_FONT,
2016-06-11 19:55:27 +02:00
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_ICONS,
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB,
2016-06-11 20:11:36 +02:00
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_BG,
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS,
2016-06-11 20:34:49 +02:00
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_FONT,
2019-01-27 11:22:16 -05:00
APPLICATION_SPECIAL_DIRECTORY_ASSETS_OZONE,
APPLICATION_SPECIAL_DIRECTORY_ASSETS_SOUNDS,
APPLICATION_SPECIAL_DIRECTORY_THUMBNAILS_CHEEVOS_BADGES,
APPLICATION_SPECIAL_DIRECTORY_THUMBNAILS_DISCORD_AVATARS
};
2016-06-20 05:11:01 +02:00
const char *file_path_str(enum file_path_enum enum_idx);
2016-05-01 15:07:45 +02:00
bool fill_pathname_application_data(char *s, size_t len);
2016-06-11 19:55:27 +02:00
void fill_pathname_application_special(char *s, size_t len, enum application_special_type type);
2017-12-30 13:35:47 +01:00
RETRO_END_DECLS
2016-05-01 15:07:45 +02:00
#endif