(Menu) Create more menu hashes

This commit is contained in:
twinaphex 2015-06-19 10:25:19 +02:00
parent 8dac9cf25d
commit b8637646bd
2 changed files with 18 additions and 5 deletions

View File

@ -700,8 +700,10 @@ static int menu_displaylist_parse_shader_options(menu_displaylist_info_t *info)
menu_list_push(info->list, "Parameters (Current)",
"video_shader_parameters", MENU_SETTING_ACTION, 0, 0);
menu_list_push(info->list, "Parameters (Menu)",
"video_shader_preset_parameters", MENU_SETTING_ACTION, 0, 0);
menu_list_push(info->list, "Shader Passes", "video_shader_num_passes",
"video_shader_preset_parameters",
MENU_SETTING_ACTION, 0, 0);
menu_list_push(info->list, "Shader Passes",
menu_hash_to_str(MENU_LABEL_VIDEO_SHADER_NUM_PASSES),
0, 0, 0);
for (i = 0; i < shader->passes; i++)
@ -709,15 +711,18 @@ static int menu_displaylist_parse_shader_options(menu_displaylist_info_t *info)
char buf[64] = {0};
snprintf(buf, sizeof(buf), "Shader #%u", i);
menu_list_push(info->list, buf, "video_shader_pass",
menu_list_push(info->list, buf,
menu_hash_to_str(MENU_LABEL_VIDEO_SHADER_PASS),
MENU_SETTINGS_SHADER_PASS_0 + i, 0, 0);
snprintf(buf, sizeof(buf), "Shader #%u Filter", i);
menu_list_push(info->list, buf, "video_shader_filter_pass",
menu_list_push(info->list, buf,
menu_hash_to_str(MENU_LABEL_VIDEO_SHADER_FILTER_PASS),
MENU_SETTINGS_SHADER_PASS_FILTER_0 + i, 0, 0);
snprintf(buf, sizeof(buf), "Shader #%u Scale", i);
menu_list_push(info->list, buf, "video_shader_scale_pass",
menu_list_push(info->list, buf,
menu_hash_to_str(MENU_LABEL_VIDEO_SHADER_SCALE_PASS),
MENU_SETTINGS_SHADER_PASS_SCALE_0 + i, 0, 0);
}

View File

@ -182,6 +182,14 @@ static const char *menu_hash_to_str_english(uint32_t hash)
{
switch (hash)
{
case MENU_LABEL_VIDEO_SHADER_PASS:
return "video_shader_pass";
case MENU_LABEL_VIDEO_SHADER_FILTER_PASS:
return "video_shader_filter_pass";
case MENU_LABEL_VIDEO_SHADER_SCALE_PASS:
return "video_shader_scale_pass";
case MENU_LABEL_VIDEO_SHADER_NUM_PASSES:
return "video_shader_num_passes";
case MENU_LABEL_RDB_ENTRY_DESCRIPTION:
return "rdb_entry_description";
case MENU_LABEL_RDB_ENTRY_ORIGIN: