(menu_cbs_title.c) Use fill_pathname_join_delim

This commit is contained in:
twinaphex 2015-06-22 20:10:33 +02:00
parent 9f90e32ed0
commit 5ec671930b

View File

@ -43,24 +43,21 @@ static INLINE void sanitize_to_string(char *s, const char *label, size_t len)
static int action_get_title_disk_image_append(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "DISK APPEND ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "DISK APPEND", path, ' ', len);
return 0;
}
static int action_get_title_cheat_file_load(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "CHEAT FILE ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "CHEAT FILE", path, ' ', len);
return 0;
}
static int action_get_title_remap_file_load(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "REMAP FILE ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "REMAP FILE", path, ' ', len);
return 0;
}
@ -74,56 +71,49 @@ static int action_get_title_help(const char *path, const char *label,
static int action_get_title_overlay(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "OVERLAY ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "OVERLAY", path, ' ', len);
return 0;
}
static int action_get_title_video_filter(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "VIDEO FILTER ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "VIDEO FILTER", path, ' ', len);
return 0;
}
static int action_get_title_cheat_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "CHEAT DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "CHEAT DIR", path, ' ', len);
return 0;
}
static int action_get_title_core_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "CORE DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "CORE DIR", path, ' ', len);
return 0;
}
static int action_get_title_core_info_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "CORE INFO DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "CORE INFO DIR", path, ' ', len);
return 0;
}
static int action_get_title_audio_filter(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "AUDIO FILTER ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "AUDIO FILTER", path, ' ', len);
return 0;
}
static int action_get_title_font_path(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "FONT ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "FONT", path, ' ', len);
return 0;
}
@ -144,8 +134,7 @@ static int action_get_title_content_collection_list(const char *path, const char
static int action_get_title_video_shader_preset(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "SHADER PRESET ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "SHADER PRESET", path, ' ', len);
return 0;
}
@ -281,8 +270,7 @@ static int action_get_title_list_rdb_entry_max_users(const char *path, const cha
static int action_get_title_deferred_core_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "DETECTED CORES ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "DETECTED CORES", path, ' ', len);
return 0;
}
@ -347,200 +335,175 @@ static int action_get_title_action_generic(const char *path, const char *label,
static int action_get_title_configurations(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "CONFIG ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "CONFIG", path, ' ', len);
return 0;
}
static int action_get_title_content_database_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "DATABASE DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "DATABASE DIR", path, ' ', len);
return 0;
}
static int action_get_title_savestate_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "SAVESTATE DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "SAVESTATE DIR", path, ' ', len);
return 0;
}
static int action_get_title_dynamic_wallpapers_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "DYNAMIC WALLPAPERS DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "DYNAMIC WALLPAPERS DIR", path, ' ', len);
return 0;
}
static int action_get_title_core_assets_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "CORE ASSETS DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "CORE ASSETS DIR", path, ' ', len);
return 0;
}
static int action_get_title_config_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "CONFIG DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "CONFIG DIR", path, ' ', len);
return 0;
}
static int action_get_title_input_remapping_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "INPUT REMAPPING DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "INPUT REMAPPING DIR", path, ' ', len);
return 0;
}
static int action_get_title_autoconfig_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "AUTOCONFIG DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "AUTOCONFIG DIR", path, ' ', len);
return 0;
}
static int action_get_title_playlist_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "PLAYLIST DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "PLAYLIST DIR", path, ' ', len);
return 0;
}
static int action_get_title_browser_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "BROWSER DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "BROWSER DIR", path, ' ', len);
return 0;
}
static int action_get_title_content_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "CONTENT DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "CONTENT DIR", path, ' ', len);
return 0;
}
static int action_get_title_screenshot_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "SCREENSHOT DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "SCREENSHOT DIR", path, ' ', len);
return 0;
}
static int action_get_title_cursor_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "CURSOR DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "CURSOR DIR", path, ' ', len);
return 0;
}
static int action_get_title_onscreen_overlay_keyboard_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "RECORDING CONFIG DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "OSK OVERLAY DIR", path, ' ', len);
return 0;
}
static int action_get_title_recording_config_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "RECORDING CONFIG DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "RECORDING CONFIG DIR", path, ' ', len);
return 0;
}
static int action_get_title_recording_output_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "RECORDING OUTPUT DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "RECORDING OUTPUT DIR", path, ' ', len);
return 0;
}
static int action_get_title_video_shader_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "SHADER DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "SHADER DIR", path, ' ', len);
return 0;
}
static int action_get_title_audio_filter_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "AUDIO FILTER DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "AUDIO FILTER DIR", path, ' ', len);
return 0;
}
static int action_get_title_video_filter_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "VIDEO FILTER DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "VIDEO FILTER DIR", path, ' ', len);
return 0;
}
static int action_get_title_savefile_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "SAVEFILE DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "SAVEFILE DIR", path, ' ', len);
return 0;
}
static int action_get_title_overlay_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "OVERLAY DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "OVERLAY DIR", path, ' ', len);
return 0;
}
static int action_get_title_system_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "SYSTEM DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "SYSTEM DIR", path, ' ', len);
return 0;
}
static int action_get_title_assets_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "ASSETS DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "ASSETS DIR", path, ' ', len);
return 0;
}
static int action_get_title_extraction_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "EXTRACTION DIR ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "EXTRACTION DIR", path, ' ', len);
return 0;
}
static int action_get_title_menu(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, "MENU ", len);
strlcat(s, path, len);
fill_pathname_join_delim(s, "MENU", path, ' ', len);
return 0;
}