Implement label for subgroup
This commit is contained in:
parent
cddaf17c95
commit
f281baf284
|
@ -4110,6 +4110,20 @@ static void menu_action_setting_disp_set_label_menu_file_shader(
|
||||||
strlcpy(path_buf, path, path_buf_size);
|
strlcpy(path_buf, path, path_buf_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void menu_action_setting_disp_set_label_menu_file_subgroup(
|
||||||
|
file_list_t* list,
|
||||||
|
unsigned *w, unsigned type, unsigned i,
|
||||||
|
const char *label,
|
||||||
|
char *type_str, size_t type_str_size,
|
||||||
|
const char *entry_label,
|
||||||
|
const char *path,
|
||||||
|
char *path_buf, size_t path_buf_size)
|
||||||
|
{
|
||||||
|
strlcpy(type_str, "(SUBGROUP)", type_str_size);
|
||||||
|
*w = strlen(type_str);
|
||||||
|
strlcpy(path_buf, path, path_buf_size);
|
||||||
|
}
|
||||||
|
|
||||||
static void menu_action_setting_disp_set_label_menu_file_shader_preset(
|
static void menu_action_setting_disp_set_label_menu_file_shader_preset(
|
||||||
file_list_t* list,
|
file_list_t* list,
|
||||||
unsigned *w, unsigned type, unsigned i,
|
unsigned *w, unsigned type, unsigned i,
|
||||||
|
@ -4841,6 +4855,10 @@ static void menu_entries_cbs_init_bind_get_string_representation(menu_file_list_
|
||||||
cbs->action_get_representation =
|
cbs->action_get_representation =
|
||||||
menu_action_setting_disp_set_label_menu_file_cheat;
|
menu_action_setting_disp_set_label_menu_file_cheat;
|
||||||
break;
|
break;
|
||||||
|
case MENU_SETTING_SUBGROUP:
|
||||||
|
cbs->action_get_representation =
|
||||||
|
menu_action_setting_disp_set_label_menu_file_subgroup;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
cbs->action_get_representation = menu_action_setting_disp_set_label;
|
cbs->action_get_representation = menu_action_setting_disp_set_label;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue