Create MENU_VALUE_UNKNOWN

This commit is contained in:
twinaphex 2015-06-21 03:34:47 +02:00
parent 62ea9a9ef6
commit 5c7b0eaedf
3 changed files with 5 additions and 2 deletions

View File

@ -339,6 +339,8 @@ static const char *menu_hash_to_str_english(uint32_t hash)
{
switch (hash)
{
case MENU_VALUE_UNKNOWN:
return "Unknown";
case MENU_VALUE_DIRECTORY_DEFAULT:
return "<Default>";
case MENU_VALUE_DIRECTORY_NONE:

View File

@ -20,6 +20,7 @@
extern "C" {
#endif
#define MENU_VALUE_UNKNOWN 0x9b3bb635U
#define MENU_VALUE_DIRECTORY_NONE 0x9996c10fU
#define MENU_VALUE_DIRECTORY_DEFAULT 0xdcc3a2e4U
#define MENU_VALUE_NOT_AVAILABLE 0x0b880503U

View File

@ -1505,7 +1505,7 @@ static void setting_get_string_representation_uint_libretro_device(void *data,
name = "RetroPad w/ Analog";
break;
default:
name = "Unknown";
name = menu_hash_to_str(MENU_VALUE_UNKNOWN);
break;
}
}
@ -1516,7 +1516,7 @@ static void setting_get_string_representation_uint_libretro_device(void *data,
static void setting_get_string_representation_uint_archive_mode(void *data,
char *s, size_t len)
{
const char *name = "Unknown";
const char *name = menu_hash_to_str(MENU_VALUE_UNKNOWN);
settings_t *settings = config_get_ptr();
(void)data;