RetroArch
Enumerations | Functions
file_path_special.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <boolean.h>
#include <retro_common_api.h>
#include <retro_environment.h>
Include dependency graph for file_path_special.h:

Go to the source code of this file.

Enumerations

enum  file_path_enum {
  FILE_PATH_UNKNOWN = 0, FILE_PATH_CONTENT_BASENAME, FILE_PATH_PROGRAM_NAME, FILE_PATH_DETECT,
  FILE_PATH_NUL, FILE_PATH_LUTRO_PLAYLIST, FILE_PATH_LOG_WARN, FILE_PATH_LOG_ERROR,
  FILE_PATH_LOG_INFO, FILE_PATH_CONTENT_HISTORY, FILE_PATH_CONTENT_FAVORITES, FILE_PATH_CONTENT_MUSIC_HISTORY,
  FILE_PATH_CONTENT_VIDEO_HISTORY, FILE_PATH_CONTENT_IMAGE_HISTORY, FILE_PATH_BACKGROUND_IMAGE, FILE_PATH_TTF_FONT,
  FILE_PATH_MAIN_CONFIG, 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, FILE_PATH_SHADERS_SLANG_ZIP,
  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_INDEX_DIRS_URL, FILE_PATH_NETPLAY_ROOM_LIST_URL, FILE_PATH_INDEX_URL,
  FILE_PATH_INDEX_EXTENDED_URL, FILE_PATH_CGP_EXTENSION, FILE_PATH_GLSLP_EXTENSION, FILE_PATH_SLANGP_EXTENSION,
  FILE_PATH_SRM_EXTENSION, FILE_PATH_PNG_EXTENSION, FILE_PATH_BMP_EXTENSION, FILE_PATH_TGA_EXTENSION,
  FILE_PATH_JPEG_EXTENSION, FILE_PATH_JPG_EXTENSION, FILE_PATH_UPS_EXTENSION, FILE_PATH_OPT_EXTENSION,
  FILE_PATH_IPS_EXTENSION, FILE_PATH_BPS_EXTENSION, FILE_PATH_STATE_EXTENSION, FILE_PATH_RTC_EXTENSION,
  FILE_PATH_REMAP_EXTENSION, FILE_PATH_CHT_EXTENSION, FILE_PATH_LPL_EXTENSION, FILE_PATH_LPL_EXTENSION_NO_DOT,
  FILE_PATH_RDB_EXTENSION, FILE_PATH_BSV_EXTENSION, FILE_PATH_AUTO_EXTENSION, FILE_PATH_ZIP_EXTENSION,
  FILE_PATH_7Z_EXTENSION, FILE_PATH_OGG_EXTENSION, FILE_PATH_MP3_EXTENSION, FILE_PATH_FLAC_EXTENSION,
  FILE_PATH_WAV_EXTENSION, FILE_PATH_MOD_EXTENSION, FILE_PATH_S3M_EXTENSION, FILE_PATH_XM_EXTENSION,
  FILE_PATH_CONFIG_EXTENSION, FILE_PATH_CORE_INFO_EXTENSION
}
 
enum  application_special_type {
  APPLICATION_SPECIAL_NONE = 0, APPLICATION_SPECIAL_DIRECTORY_AUTOCONFIG, APPLICATION_SPECIAL_DIRECTORY_CONFIG, APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI,
  APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_FONT, APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_ICONS, APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB, APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_BG,
  APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS, APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_FONT, APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH, APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH_FONT,
  APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH_ICONS, APPLICATION_SPECIAL_DIRECTORY_THUMBNAILS_CHEEVOS_BADGES
}
 

Functions

void fill_short_pathname_representation_wrapper (char *out_rep, const char *in_path, size_t size)
 
const char * file_path_str (enum file_path_enum enum_idx)
 
bool fill_pathname_application_data (char *s, size_t len)
 
void fill_pathname_application_special (char *s, size_t len, enum application_special_type type)
 

Enumeration Type Documentation

◆ application_special_type

Enumerator
APPLICATION_SPECIAL_NONE 
APPLICATION_SPECIAL_DIRECTORY_AUTOCONFIG 
APPLICATION_SPECIAL_DIRECTORY_CONFIG 
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI 
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_FONT 
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_ICONS 
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB 
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_BG 
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS 
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_FONT 
APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH 
APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH_FONT 
APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH_ICONS 
APPLICATION_SPECIAL_DIRECTORY_THUMBNAILS_CHEEVOS_BADGES 

◆ file_path_enum

Enumerator
FILE_PATH_UNKNOWN 
FILE_PATH_CONTENT_BASENAME 
FILE_PATH_PROGRAM_NAME 
FILE_PATH_DETECT 
FILE_PATH_NUL 
FILE_PATH_LUTRO_PLAYLIST 
FILE_PATH_LOG_WARN 
FILE_PATH_LOG_ERROR 
FILE_PATH_LOG_INFO 
FILE_PATH_CONTENT_HISTORY 
FILE_PATH_CONTENT_FAVORITES 
FILE_PATH_CONTENT_MUSIC_HISTORY 
FILE_PATH_CONTENT_VIDEO_HISTORY 
FILE_PATH_CONTENT_IMAGE_HISTORY 
FILE_PATH_BACKGROUND_IMAGE 
FILE_PATH_TTF_FONT 
FILE_PATH_MAIN_CONFIG 
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 
FILE_PATH_SHADERS_SLANG_ZIP 
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_INDEX_DIRS_URL 
FILE_PATH_NETPLAY_ROOM_LIST_URL 
FILE_PATH_INDEX_URL 
FILE_PATH_INDEX_EXTENDED_URL 
FILE_PATH_CGP_EXTENSION 
FILE_PATH_GLSLP_EXTENSION 
FILE_PATH_SLANGP_EXTENSION 
FILE_PATH_SRM_EXTENSION 
FILE_PATH_PNG_EXTENSION 
FILE_PATH_BMP_EXTENSION 
FILE_PATH_TGA_EXTENSION 
FILE_PATH_JPEG_EXTENSION 
FILE_PATH_JPG_EXTENSION 
FILE_PATH_UPS_EXTENSION 
FILE_PATH_OPT_EXTENSION 
FILE_PATH_IPS_EXTENSION 
FILE_PATH_BPS_EXTENSION 
FILE_PATH_STATE_EXTENSION 
FILE_PATH_RTC_EXTENSION 
FILE_PATH_REMAP_EXTENSION 
FILE_PATH_CHT_EXTENSION 
FILE_PATH_LPL_EXTENSION 
FILE_PATH_LPL_EXTENSION_NO_DOT 
FILE_PATH_RDB_EXTENSION 
FILE_PATH_BSV_EXTENSION 
FILE_PATH_AUTO_EXTENSION 
FILE_PATH_ZIP_EXTENSION 
FILE_PATH_7Z_EXTENSION 
FILE_PATH_OGG_EXTENSION 
FILE_PATH_MP3_EXTENSION 
FILE_PATH_FLAC_EXTENSION 
FILE_PATH_WAV_EXTENSION 
FILE_PATH_MOD_EXTENSION 
FILE_PATH_S3M_EXTENSION 
FILE_PATH_XM_EXTENSION 
FILE_PATH_CONFIG_EXTENSION 
FILE_PATH_CORE_INFO_EXTENSION 

Function Documentation

◆ file_path_str()

const char* file_path_str ( enum file_path_enum  enum_idx)

◆ fill_pathname_application_data()

bool fill_pathname_application_data ( char *  s,
size_t  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill_pathname_application_special()

void fill_pathname_application_special ( char *  s,
size_t  len,
enum application_special_type  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill_short_pathname_representation_wrapper()

void fill_short_pathname_representation_wrapper ( char *  out_rep,
const char *  in_path,
size_t  size 
)

fill_short_pathname_representation: : output representation : input path : size of output representation

Generates a short representation of path. It should only be used for displaying the result; the output representation is not binding in any meaningful way (for a normal path, this is the same as basename) In case of more complex URLs, this should cut everything except for the main image file.

E.g.: "/path/to/game.img" -> game.img "/path/to/myarchive.7z#folder/to/game.img" -> game.img

Here is the call graph for this function: