Fix shader parameters' values being shown again

This commit is contained in:
twinaphex 2015-06-26 07:45:54 +02:00
parent 063d5a97a1
commit ca43ef1eac
2 changed files with 9 additions and 5 deletions

View File

@ -985,10 +985,6 @@ static int menu_cbs_init_bind_get_string_representation_compare_type(
&& type <= MENU_SETTINGS_SHADER_PRESET_PARAMETER_LAST)
cbs->action_get_value =
menu_action_setting_disp_set_label_shader_preset_parameter;
else if (type >= MENU_SETTINGS_SHADER_PARAMETER_0
&& type <= MENU_SETTINGS_SHADER_PARAMETER_LAST)
cbs->action_get_value =
menu_action_setting_disp_set_label_shader_parameter;
else
{
switch (type)
@ -1098,6 +1094,14 @@ int menu_cbs_init_bind_get_string_representation(menu_file_list_cbs_t *cbs,
if (!cbs)
return -1;
if (type >= MENU_SETTINGS_SHADER_PARAMETER_0
&& type <= MENU_SETTINGS_SHADER_PARAMETER_LAST)
{
cbs->action_get_value =
menu_action_setting_disp_set_label_shader_parameter;
return 0;
}
if (menu_cbs_init_bind_get_string_representation_compare_label(cbs, label_hash) == 0)
return 0;

View File

@ -180,7 +180,7 @@ static int action_iterate_help(char *s, size_t len, const char *label)
}
snprintf(s, len,
"-- Welcome to RetroArch --\n"
"Welcome to RetroArch\n"
" \n" // strtok_r doesn't split empty strings.
"Basic Menu controls:\n"