From a8004dee3dae43adab24d0723e795de6f2cffd0d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 8 Jul 2016 18:19:10 +0200 Subject: [PATCH] (Cheevos) Add label representation --- menu/cbs/menu_cbs_get_value.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/menu/cbs/menu_cbs_get_value.c b/menu/cbs/menu_cbs_get_value.c index 23b74e081e..2a2142657f 100644 --- a/menu/cbs/menu_cbs_get_value.c +++ b/menu/cbs/menu_cbs_get_value.c @@ -61,6 +61,20 @@ static void menu_action_setting_disp_set_label_cheat_num_passes( snprintf(s, len, "%u", cheat_manager_get_buf_size()); } +static void menu_action_setting_disp_set_label_cheevos_entry( + file_list_t* list, + unsigned *w, unsigned type, unsigned i, + const char *label, + char *s, size_t len, + const char *entry_label, + const char *path, + char *s2, size_t len2) +{ + *w = 19; + strlcpy(s2, path, len2); + strlcpy(s, "", len); +} + static void menu_action_setting_disp_set_label_remap_file_load( file_list_t* list, unsigned *w, unsigned type, unsigned i, @@ -1724,6 +1738,10 @@ int menu_cbs_init_bind_get_string_representation(menu_file_list_cbs_t *cbs, { switch (cbs->enum_idx) { + case MENU_ENUM_LABEL_CHEEVOS_ENTRY: + BIND_ACTION_GET_VALUE(cbs, + menu_action_setting_disp_set_label_cheevos_entry); + return 0; case MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY: BIND_ACTION_GET_VALUE(cbs, menu_action_setting_disp_set_label_content_history);