mirror of
https://github.com/libretro/RetroArch
synced 2025-04-24 15:02:35 +00:00
Reimplement get_string_representation for ST_ACTION
This commit is contained in:
parent
f271b05712
commit
20b87ad3d5
@ -5835,7 +5835,6 @@ static void menu_entries_cbs_init_bind_get_string_representation(menu_file_list_
|
|||||||
case MENU_SETTINGS_CUSTOM_VIEWPORT:
|
case MENU_SETTINGS_CUSTOM_VIEWPORT:
|
||||||
case MENU_SETTINGS_CUSTOM_BIND_ALL:
|
case MENU_SETTINGS_CUSTOM_BIND_ALL:
|
||||||
case MENU_SETTINGS_CUSTOM_BIND_DEFAULT_ALL:
|
case MENU_SETTINGS_CUSTOM_BIND_DEFAULT_ALL:
|
||||||
case MENU_SETTING_ACTION:
|
|
||||||
cbs->action_get_representation =
|
cbs->action_get_representation =
|
||||||
menu_action_setting_disp_set_label_menu_more;
|
menu_action_setting_disp_set_label_menu_more;
|
||||||
break;
|
break;
|
||||||
|
@ -1088,6 +1088,12 @@ static void setting_data_get_string_representation_st_bool(void *data,
|
|||||||
setting->boolean.off_label, type_str_size);
|
setting->boolean.off_label, type_str_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void setting_data_get_string_representation_st_action(void *data,
|
||||||
|
char *type_str, size_t type_str_size)
|
||||||
|
{
|
||||||
|
strlcpy(type_str, "...", type_str_size);
|
||||||
|
}
|
||||||
|
|
||||||
static void setting_data_get_string_representation_st_group(void *data,
|
static void setting_data_get_string_representation_st_group(void *data,
|
||||||
char *type_str, size_t type_str_size)
|
char *type_str, size_t type_str_size)
|
||||||
{
|
{
|
||||||
@ -1411,7 +1417,7 @@ rarch_setting_t setting_data_action_setting(const char* name,
|
|||||||
result.change_handler = NULL;
|
result.change_handler = NULL;
|
||||||
result.deferred_handler = NULL;
|
result.deferred_handler = NULL;
|
||||||
result.read_handler = NULL;
|
result.read_handler = NULL;
|
||||||
result.get_string_representation = NULL;
|
result.get_string_representation = &setting_data_get_string_representation_st_action;
|
||||||
result.action_start = NULL;
|
result.action_start = NULL;
|
||||||
result.action_iterate = NULL;
|
result.action_iterate = NULL;
|
||||||
result.action_toggle = NULL;
|
result.action_toggle = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user