mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Create manual get_value cbs callback for URL
This commit is contained in:
parent
9596cc2866
commit
49634cc46e
@ -660,6 +660,26 @@ static void menu_action_setting_disp_set_label_db_entry(
|
||||
strlcpy(s2, path, len2);
|
||||
}
|
||||
|
||||
static void menu_action_setting_disp_set_label_entry_url(
|
||||
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)
|
||||
{
|
||||
const char *representation_label = NULL;
|
||||
*s = '\0';
|
||||
*w = 8;
|
||||
file_list_get_alt_at_offset(list, i, &representation_label);
|
||||
|
||||
if (!string_is_empty(representation_label))
|
||||
strlcpy(s2, representation_label, len2);
|
||||
else
|
||||
strlcpy(s2, path, len2);
|
||||
}
|
||||
|
||||
static void menu_action_setting_disp_set_label_entry(
|
||||
file_list_t* list,
|
||||
unsigned *w, unsigned type, unsigned i,
|
||||
@ -1929,7 +1949,7 @@ static int menu_cbs_init_bind_get_string_representation_compare_type(
|
||||
break;
|
||||
case 25: /* URL directory entries */
|
||||
case 26: /* URL entries */
|
||||
BIND_ACTION_GET_VALUE(cbs, menu_action_setting_disp_set_label_entry);
|
||||
BIND_ACTION_GET_VALUE(cbs, menu_action_setting_disp_set_label_entry_url);
|
||||
break;
|
||||
case MENU_SETTING_NO_ITEM:
|
||||
BIND_ACTION_GET_VALUE(cbs, menu_action_setting_disp_set_label_no_items);
|
||||
|
Loading…
x
Reference in New Issue
Block a user