(Menu) Add label for 'No performance counters'

This commit is contained in:
twinaphex 2015-06-21 22:25:44 +02:00
parent 2efcd469b6
commit e370f3cc97
3 changed files with 8 additions and 0 deletions

View File

@ -92,7 +92,12 @@ static void menu_displaylist_push_perfcounter(
{
unsigned i;
if (!counters || num == 0)
{
menu_list_push(info->list,
menu_hash_to_str(MENU_LABEL_VALUE_NO_PERFORMANCE_COUNTERS),
"", 0, 0, 0);
return;
}
for (i = 0; i < num; i++)
if (counters[i] && counters[i]->ident)

View File

@ -1330,6 +1330,8 @@ static const char *menu_hash_to_str_english(uint32_t hash)
{
switch (hash)
{
case MENU_LABEL_VALUE_NO_PERFORMANCE_COUNTERS:
return "No performance counters.";
case MENU_LABEL_VALUE_DRIVER_SETTINGS:
return "Driver Settings";
case MENU_LABEL_VALUE_CONFIGURATION_SETTINGS:

View File

@ -29,6 +29,7 @@ extern "C" {
#define MENU_VALUE_DIRECTORY_DEFAULT 0xdcc3a2e4U
#define MENU_VALUE_NOT_AVAILABLE 0x0b880503U
#define MENU_LABEL_VALUE_NO_PERFORMANCE_COUNTERS 0xb4b52b95U
#define MENU_LABEL_VIDEO_FONT_ENABLE 0x697d9b58U
#define MENU_LABEL_VALUE_VIDEO_FONT_ENABLE 0x272a12a6U