mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Prevent menu_setting_get_label invocation for system info entries
This commit is contained in:
parent
98f2c994ce
commit
834e9bc8ae
@ -624,6 +624,20 @@ static void menu_action_setting_disp_set_label_db_entry(
|
||||
strlcpy(s2, path, len2);
|
||||
}
|
||||
|
||||
static void menu_action_setting_disp_set_label_system_info_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)
|
||||
{
|
||||
*s = '\0';
|
||||
*w = 8;
|
||||
strlcpy(s2, path, len2);
|
||||
}
|
||||
|
||||
static void menu_action_setting_disp_set_label_state(
|
||||
file_list_t* list,
|
||||
unsigned *w, unsigned type, unsigned i,
|
||||
@ -1754,6 +1768,9 @@ static int menu_cbs_init_bind_get_string_representation_compare_type(
|
||||
case 31: /* Database entry */
|
||||
BIND_ACTION_GET_VALUE(cbs, menu_action_setting_disp_set_label_db_entry);
|
||||
break;
|
||||
case 65535: /* System info entry */
|
||||
BIND_ACTION_GET_VALUE(cbs, menu_action_setting_disp_set_label_system_info_entry);
|
||||
break;
|
||||
default:
|
||||
#if 0
|
||||
RARCH_LOG("type: %d\n", type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user