From e42c1d333ce3e9a1bbe7227af325c8ea5ec773d2 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sat, 20 Jun 2015 17:47:09 +0200 Subject: [PATCH] (Menu) More label updates --- menu/menu_hash.c | 16 ++++++++++++++++ menu/menu_hash.h | 10 ++++++++++ menu/menu_setting.c | 20 ++++++++++---------- 3 files changed, 36 insertions(+), 10 deletions(-) diff --git a/menu/menu_hash.c b/menu/menu_hash.c index 79beebb315..4af37db9a5 100644 --- a/menu/menu_hash.c +++ b/menu/menu_hash.c @@ -311,6 +311,22 @@ static const char *menu_hash_to_str_english(uint32_t hash) { switch (hash) { + case MENU_LABEL_NETWORK_CMD_ENABLE: + return "network_cmd_enable"; + case MENU_LABEL_VALUE_NETWORK_CMD_ENABLE: + return "Network Commands"; + case MENU_LABEL_NETWORK_CMD_PORT: + return "network_cmd_port"; + case MENU_LABEL_VALUE_NETWORK_CMD_PORT: + return "Network Command Port"; + case MENU_LABEL_HISTORY_LIST_ENABLE: + return "history_list_enable"; + case MENU_LABEL_VALUE_HISTORY_LIST_ENABLE: + return "History List Enable"; + case MENU_LABEL_CONTENT_HISTORY_SIZE: + return "Content History Size"; + case MENU_LABEL_VALUE_CONTENT_HISTORY_SIZE: + return "History List Size"; case MENU_LABEL_VIDEO_REFRESH_RATE_AUTO: return "video_refresh_rate_auto"; case MENU_LABEL_VALUE_VIDEO_REFRESH_RATE_AUTO: diff --git a/menu/menu_hash.h b/menu/menu_hash.h index aebfddbb7f..f9242f9d5a 100644 --- a/menu/menu_hash.h +++ b/menu/menu_hash.h @@ -315,6 +315,16 @@ extern "C" { #define MENU_VALUE_GLSL 0x7c976537U #define MENU_VALUE_CG 0x0059776fU +#define MENU_LABEL_NETWORK_CMD_ENABLE 0xfdf03a08U +#define MENU_LABEL_VALUE_NETWORK_CMD_ENABLE 0xb822b7a1U +#define MENU_LABEL_NETWORK_CMD_PORT 0xc1b9e0a6U +#define MENU_LABEL_VALUE_NETWORK_CMD_PORT 0xee5773f3U +#define MENU_LABEL_STDIN_CMD_ENABLE 0x665069c0U +#define MENU_LABEL_VALUE_STDIN_CMD_ENABLE 0xc98ecc46U +#define MENU_LABEL_HISTORY_LIST_ENABLE 0xe1c2ae78U +#define MENU_LABEL_VALUE_HISTORY_LIST_ENABLE 0xd2c13bbaU +#define MENU_LABEL_CONTENT_HISTORY_SIZE 0x6f24c38bU +#define MENU_LABEL_VALUE_CONTENT_HISTORY_SIZE 0xda9c5a6eU #define MENU_LABEL_CONTENT_ACTIONS 0xa0d76970U #define MENU_LABEL_DETECT_CORE_LIST 0xaa07c341U #define MENU_LABEL_VALUE_DETECT_CORE_LIST 0x69f11813U diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 5baca7b552..fd5e386517 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -6288,8 +6288,8 @@ static bool setting_append_list_netplay_options( #if defined(HAVE_NETWORK_CMD) CONFIG_BOOL( settings->network_cmd_enable, - "network_cmd_enable", - "Network Commands", + menu_hash_to_str(MENU_LABEL_NETWORK_CMD_ENABLE), + menu_hash_to_str(MENU_LABEL_VALUE_NETWORK_CMD_ENABLE), network_cmd_enable, menu_hash_to_str(MENU_VALUE_OFF), menu_hash_to_str(MENU_VALUE_ON), @@ -6302,8 +6302,8 @@ static bool setting_append_list_netplay_options( CONFIG_UINT( settings->network_cmd_port, - "network_cmd_port", - "Network Command Port", + menu_hash_to_str(MENU_LABEL_NETWORK_CMD_PORT), + menu_hash_to_str(MENU_LABEL_VALUE_NETWORK_CMD_PORT), network_cmd_port, group_info.name, subgroup_info.name, @@ -6314,8 +6314,8 @@ static bool setting_append_list_netplay_options( CONFIG_BOOL( settings->stdin_cmd_enable, - "stdin_cmd_enable", - "stdin command", + menu_hash_to_str(MENU_LABEL_STDIN_CMD_ENABLE), + menu_hash_to_str(MENU_LABEL_VALUE_STDIN_CMD_ENABLE), stdin_cmd_enable, menu_hash_to_str(MENU_VALUE_OFF), menu_hash_to_str(MENU_VALUE_ON), @@ -6409,8 +6409,8 @@ static bool setting_append_list_playlist_options( CONFIG_BOOL( settings->history_list_enable, - "history_list_enable", - "History List Enable", + menu_hash_to_str(MENU_LABEL_HISTORY_LIST_ENABLE), + menu_hash_to_str(MENU_LABEL_VALUE_HISTORY_LIST_ENABLE), true, menu_hash_to_str(MENU_VALUE_OFF), menu_hash_to_str(MENU_VALUE_ON), @@ -6422,8 +6422,8 @@ static bool setting_append_list_playlist_options( CONFIG_UINT( settings->content_history_size, - "content_history_size", - "History List Size", + menu_hash_to_str(MENU_LABEL_CONTENT_HISTORY_SIZE), + menu_hash_to_str(MENU_LABEL_CONTENT_HISTORY_SIZE), default_content_history_size, group_info.name, subgroup_info.name,