From 0a056da584bcba50dbc74f537d1cf5d38b324ca8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 5 Jun 2015 14:35:20 +0200 Subject: [PATCH] (menu_setting.c) Cleanup --- menu/menu_hash.h | 2 ++ menu/menu_setting.c | 15 +++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/menu/menu_hash.h b/menu/menu_hash.h index e4b1d9e66d..948d9890e4 100644 --- a/menu/menu_hash.h +++ b/menu/menu_hash.h @@ -20,8 +20,10 @@ extern "C" { #endif + #define MENU_LABEL_AUDIO_DEVICE 0x2574eac6U +#define MENU_LABEL_REWIND_ENABLE 0x9761e074U #define MENU_LABEL_ENABLE_HOTKEY 0xc04037bfU #define MENU_LABEL_DISK_EJECT_TOGGLE 0x49633fbbU #define MENU_LABEL_DISK_NEXT 0xeeaf6c6eU diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 7d56f837c4..587160abcf 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -2455,6 +2455,13 @@ static int setting_get_description_compare_label(uint32_t label_hash, "the keyboard, where it is not desirable that \n" "hotkeys get in the way."); break; + case MENU_LABEL_REWIND_ENABLE: + snprintf(s, len, + " -- Enable rewinding.\n" + " \n" + "This will take a performance hit, \n" + "so it is disabled by default."); + break; default: return -1; } @@ -2837,14 +2844,6 @@ int setting_get_description(const char *label, char *s, "at a time, increasing the rewinding \n" "speed."); } - else if (!strcmp(label, "rewind_enable")) - { - snprintf(s, len, - " -- Enable rewinding.\n" - " \n" - "This will take a performance hit, \n" - "so it is disabled by default."); - } else if (!strcmp(label, "input_autodetect_enable")) { snprintf(s, len,