mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
allow bool/string/path settings to override cbs_get_value
This commit is contained in:
parent
dbe270476a
commit
efc35e43bb
@ -2170,27 +2170,6 @@ int menu_cbs_init_bind_get_string_representation(menu_file_list_cbs_t *cbs,
|
||||
RARCH_LOG("MENU_SETTINGS_LAST: %d\n", MENU_SETTINGS_LAST);
|
||||
#endif
|
||||
|
||||
if (cbs->setting)
|
||||
{
|
||||
switch (setting_get_type(cbs->setting))
|
||||
{
|
||||
case ST_BOOL:
|
||||
BIND_ACTION_GET_VALUE(cbs,
|
||||
menu_action_setting_disp_set_label_setting_bool);
|
||||
return 0;
|
||||
case ST_STRING:
|
||||
BIND_ACTION_GET_VALUE(cbs,
|
||||
menu_action_setting_disp_set_label_setting_string);
|
||||
return 0;
|
||||
case ST_PATH:
|
||||
BIND_ACTION_GET_VALUE(cbs,
|
||||
menu_action_setting_disp_set_label_setting_path);
|
||||
return 0;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (cbs->enum_idx != MSG_UNKNOWN)
|
||||
{
|
||||
switch (cbs->enum_idx)
|
||||
@ -2225,6 +2204,27 @@ int menu_cbs_init_bind_get_string_representation(menu_file_list_cbs_t *cbs,
|
||||
}
|
||||
}
|
||||
|
||||
if (cbs->setting)
|
||||
{
|
||||
switch (setting_get_type(cbs->setting))
|
||||
{
|
||||
case ST_BOOL:
|
||||
BIND_ACTION_GET_VALUE(cbs,
|
||||
menu_action_setting_disp_set_label_setting_bool);
|
||||
return 0;
|
||||
case ST_STRING:
|
||||
BIND_ACTION_GET_VALUE(cbs,
|
||||
menu_action_setting_disp_set_label_setting_string);
|
||||
return 0;
|
||||
case ST_PATH:
|
||||
BIND_ACTION_GET_VALUE(cbs,
|
||||
menu_action_setting_disp_set_label_setting_path);
|
||||
return 0;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (type >= MENU_SETTINGS_PLAYLIST_ASSOCIATION_START)
|
||||
{
|
||||
BIND_ACTION_GET_VALUE(cbs,
|
||||
|
Loading…
x
Reference in New Issue
Block a user