mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Create menu_hash_to_str_us_enum
This commit is contained in:
parent
277e46badc
commit
8adda6e822
File diff suppressed because it is too large
Load Diff
@ -69,6 +69,54 @@ const char *menu_hash_to_str(uint32_t hash)
|
|||||||
return menu_hash_to_str_us(hash);
|
return menu_hash_to_str_us(hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *menu_hash_to_str_enum(enum menu_hash_enums msg)
|
||||||
|
{
|
||||||
|
const char *ret = NULL;
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
|
if (!settings)
|
||||||
|
return "null";
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
#ifdef HAVE_LANGEXTRA
|
||||||
|
switch (settings->user_language)
|
||||||
|
{
|
||||||
|
case RETRO_LANGUAGE_FRENCH:
|
||||||
|
ret = menu_hash_to_str_fr_enum(msg);
|
||||||
|
break;
|
||||||
|
case RETRO_LANGUAGE_GERMAN:
|
||||||
|
ret = menu_hash_to_str_de_enum(msg);
|
||||||
|
break;
|
||||||
|
case RETRO_LANGUAGE_SPANISH:
|
||||||
|
ret = menu_hash_to_str_es_enum(msg);
|
||||||
|
break;
|
||||||
|
case RETRO_LANGUAGE_ITALIAN:
|
||||||
|
ret = menu_hash_to_str_it_enum(msg);
|
||||||
|
break;
|
||||||
|
case RETRO_LANGUAGE_PORTUGUESE:
|
||||||
|
ret = menu_hash_to_str_pt_enum(msg);
|
||||||
|
break;
|
||||||
|
case RETRO_LANGUAGE_DUTCH:
|
||||||
|
ret = menu_hash_to_str_nl_enum(msg);
|
||||||
|
break;
|
||||||
|
case RETRO_LANGUAGE_ESPERANTO:
|
||||||
|
ret = menu_hash_to_str_eo_enum(msg);
|
||||||
|
break;
|
||||||
|
case RETRO_LANGUAGE_POLISH:
|
||||||
|
ret = menu_hash_to_str_pl_enum(msg);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (ret && !string_is_equal(ret, "null"))
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
return menu_hash_to_str_us_enum(msg);
|
||||||
|
}
|
||||||
|
|
||||||
int menu_hash_get_help(uint32_t hash, char *s, size_t len)
|
int menu_hash_get_help(uint32_t hash, char *s, size_t len)
|
||||||
{
|
{
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
@ -32,7 +32,16 @@ enum menu_hash_enums
|
|||||||
|
|
||||||
MENU_ENUM_LABEL_MENU_THROTTLE_FRAMERATE,
|
MENU_ENUM_LABEL_MENU_THROTTLE_FRAMERATE,
|
||||||
MENU_ENUM_LABEL_MENU_WALLPAPER,
|
MENU_ENUM_LABEL_MENU_WALLPAPER,
|
||||||
|
MENU_ENUM_LABEL_VALUE_MENU_WALLPAPER,
|
||||||
MENU_ENUM_LABEL_MENU_LINEAR_FILTER,
|
MENU_ENUM_LABEL_MENU_LINEAR_FILTER,
|
||||||
|
MENU_ENUM_LABEL_VALUE_MENU_LINEAR_FILTER,
|
||||||
|
|
||||||
|
MENU_ENUM_LABEL_VALUE_MENU_DRIVER,
|
||||||
|
|
||||||
|
MENU_ENUM_LABEL_VALUE_MENU_FILE_BROWSER_SETTINGS,
|
||||||
|
|
||||||
|
MENU_ENUM_LABEL_MENU_SETTINGS,
|
||||||
|
MENU_ENUM_LABEL_VALUE_MENU_SETTINGS,
|
||||||
|
|
||||||
MENU_ENUM_LABEL_THUMBNAILS_UPDATER_LIST,
|
MENU_ENUM_LABEL_THUMBNAILS_UPDATER_LIST,
|
||||||
MENU_ENUM_LABEL_VALUE_THUMBNAILS_UPDATER_LIST,
|
MENU_ENUM_LABEL_VALUE_THUMBNAILS_UPDATER_LIST,
|
||||||
@ -2366,9 +2375,11 @@ const char *menu_hash_to_str_eo(uint32_t hash);
|
|||||||
int menu_hash_get_help_eo(uint32_t hash, char *s, size_t len);
|
int menu_hash_get_help_eo(uint32_t hash, char *s, size_t len);
|
||||||
|
|
||||||
const char *menu_hash_to_str_us(uint32_t hash);
|
const char *menu_hash_to_str_us(uint32_t hash);
|
||||||
|
const char *menu_hash_to_str_us_enum(enum menu_hash_enums msg);
|
||||||
int menu_hash_get_help_us(uint32_t hash, char *s, size_t len);
|
int menu_hash_get_help_us(uint32_t hash, char *s, size_t len);
|
||||||
|
|
||||||
const char *menu_hash_to_str(uint32_t hash);
|
const char *menu_hash_to_str(uint32_t hash);
|
||||||
|
const char *menu_hash_to_str_enum(enum menu_hash_enums msg);
|
||||||
int menu_hash_get_help(uint32_t hash, char *s, size_t len);
|
int menu_hash_get_help(uint32_t hash, char *s, size_t len);
|
||||||
|
|
||||||
uint32_t menu_hash_calculate(const char *s);
|
uint32_t menu_hash_calculate(const char *s);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user