From e370f3cc971674b8af395743faf885bd8f5d3e18 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 21 Jun 2015 22:25:44 +0200 Subject: [PATCH] (Menu) Add label for 'No performance counters' --- menu/menu_displaylist.c | 5 +++++ menu/menu_hash.c | 2 ++ menu/menu_hash.h | 1 + 3 files changed, 8 insertions(+) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 097aa1fdc4..a63e05d78f 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -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) diff --git a/menu/menu_hash.c b/menu/menu_hash.c index be21d6a5ce..e299a13a97 100644 --- a/menu/menu_hash.c +++ b/menu/menu_hash.c @@ -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: diff --git a/menu/menu_hash.h b/menu/menu_hash.h index ec1fb88212..10b976d46e 100644 --- a/menu/menu_hash.h +++ b/menu/menu_hash.h @@ -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