mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-30 14:53:39 +00:00
Use enums for as many settings entries as possible
This commit is contained in:
parent
e82a129fef
commit
7baada45b0
@ -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;
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user