Dehardcode more strings

This commit is contained in:
twinaphex 2016-06-20 21:47:11 +02:00
parent e3fa9ae5ee
commit c9f047edd3
3 changed files with 17 additions and 3 deletions

View File

@ -2416,6 +2416,12 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
return "<None>";
case MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE:
return "N/A";
case MENU_ENUM_LABEL_VALUE_DATABASE_SELECTION:
return "Database Selection";
case MENU_ENUM_LABEL_VALUE_CORE_ASSETS_DIR:
return "Core Assets Dir";
case MENU_ENUM_LABEL_VALUE_CONTENT_DIR:
return "Content Dir";
case MENU_ENUM_LABEL_VALUE_INPUT_REMAPPING_DIRECTORY:
return "Input Remapping Dir";
case MENU_ENUM_LABEL_VALUE_JOYPAD_AUTOCONFIG_DIR:

View File

@ -158,7 +158,8 @@ static int action_get_title_generic(char *s, size_t len, const char *path,
static int action_get_title_deferred_database_manager_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Selection");
return action_get_title_generic(s, len, path,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DATABASE_SELECTION));
}
static int action_get_title_deferred_cursor_manager_list(const char *path, const char *label,
@ -575,7 +576,8 @@ static int action_get_title_dynamic_wallpapers_directory(const char *path, const
static int action_get_title_core_assets_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return fill_title(s, "Core Assets Dir", path, len);
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_ASSETS_DIR), path, len);
}
static int action_get_title_config_directory(const char *path, const char *label,
@ -616,7 +618,8 @@ static int action_get_title_browser_directory(const char *path, const char *labe
static int action_get_title_content_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return fill_title(s, "Content Dir", path, len);
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CONTENT_DIR), path, len);
}
static int action_get_title_screenshot_directory(const char *path, const char *label,

View File

@ -1425,6 +1425,11 @@ enum msg_hash_enums
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_V4L2_SUPPORT,
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_LIBUSB_SUPPORT,
MENU_ENUM_LABEL_VALUE_CORE_ASSETS_DIR,
MENU_ENUM_LABEL_VALUE_CONTENT_DIR,
MENU_ENUM_LABEL_VALUE_DATABASE_SELECTION,
MENU_ENUM_LABEL_VALUE_YES,
MENU_ENUM_LABEL_VALUE_NO,