Use enums for as many settings entries as possible

This commit is contained in:
twinaphex 2016-07-25 18:15:36 +02:00
parent e82a129fef
commit 7baada45b0
3 changed files with 9 additions and 0 deletions

View File

@ -2621,6 +2621,10 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg)
return "file_browser_plain_file";
case MENU_ENUM_LABEL_FILE_BROWSER_CORE:
return "file_browser_core";
case MENU_ENUM_LABEL_FILE_BROWSER_ARCHIVE:
return "file_browser_archive";
case MENU_ENUM_LABEL_FILE_BROWSER_FILE_IN_ARCHIVE:
return "file_browser_file_in_archive";
default:
break;
}

View File

@ -3324,12 +3324,15 @@ static int menu_displaylist_parse_cores(
{
case RARCH_DIRECTORY:
file_type = FILE_TYPE_DIRECTORY;
enum_idx = MENU_ENUM_LABEL_FILE_BROWSER_DIRECTORY;
break;
case RARCH_COMPRESSED_ARCHIVE:
file_type = FILE_TYPE_CARCHIVE;
enum_idx = MENU_ENUM_LABEL_FILE_BROWSER_ARCHIVE;
break;
case RARCH_COMPRESSED_FILE_IN_ARCHIVE:
file_type = FILE_TYPE_IN_CARCHIVE;
enum_idx = MENU_ENUM_LABEL_FILE_BROWSER_FILE_IN_ARCHIVE;
break;
case RARCH_PLAIN_FILE:
default:

View File

@ -289,6 +289,8 @@ enum msg_hash_enums
MENU_ENUM_LABEL_FILE_BROWSER_DIRECTORY,
MENU_ENUM_LABEL_FILE_BROWSER_PLAIN_FILE,
MENU_ENUM_LABEL_FILE_BROWSER_CORE,
MENU_ENUM_LABEL_FILE_BROWSER_ARCHIVE,
MENU_ENUM_LABEL_FILE_BROWSER_FILE_IN_ARCHIVE,
MENU_ENUM_LABEL_VALUE_CONTENT_HISTORY_SIZE,
MENU_ENUM_LABEL_MENU_TOGGLE,