(Cheevos) Add label representation
This commit is contained in:
parent
f107af6b55
commit
a8004dee3d
|
@ -61,6 +61,20 @@ static void menu_action_setting_disp_set_label_cheat_num_passes(
|
||||||
snprintf(s, len, "%u", cheat_manager_get_buf_size());
|
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(
|
static void menu_action_setting_disp_set_label_remap_file_load(
|
||||||
file_list_t* list,
|
file_list_t* list,
|
||||||
unsigned *w, unsigned type, unsigned i,
|
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)
|
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:
|
case MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY:
|
||||||
BIND_ACTION_GET_VALUE(cbs,
|
BIND_ACTION_GET_VALUE(cbs,
|
||||||
menu_action_setting_disp_set_label_content_history);
|
menu_action_setting_disp_set_label_content_history);
|
||||||
|
|
Loading…
Reference in New Issue