Move 'No Information is Available' string to menu_hash_us.c

This commit is contained in:
twinaphex 2015-06-25 08:04:34 +02:00
parent cbc269bb0c
commit 7d85936e2b
2 changed files with 4 additions and 6 deletions

View File

@ -17,6 +17,8 @@
#include <stdint.h>
#include <string.h>
#include <compat/strl.h>
#include "../menu_hash.h"
#include "../../configuration.h"
@ -2255,6 +2257,7 @@ int menu_hash_get_help_us(uint32_t hash, char *s, size_t len)
"Positive Y axis is down.");
break;
default:
strlcpy(s, "No information is available.", len);
return -1;
}

View File

@ -2035,12 +2035,7 @@ int setting_get_description(const char *label, char *s,
{
uint32_t label_hash = menu_hash_calculate(label);
if (menu_hash_get_help(label_hash, s, len) == 0)
return 0;
strlcpy(s, "No information is available.", len);
return 0;
return menu_hash_get_help(label_hash, s, len);
}
static void get_string_representation_bind_device(void * data, char *s,