mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Use sublabel as help text if there is no suitable definition. (#14714)
* Use sublabel as help text if there is no suitable definition. * code style update
This commit is contained in:
parent
d08c6d2db3
commit
e6421f6f8b
@ -7554,6 +7554,18 @@ static int generic_menu_iterate(
|
||||
default:
|
||||
ret = msg_hash_get_help_enum(cbs->enum_idx,
|
||||
menu->menu_state_msg, sizeof(menu->menu_state_msg));
|
||||
|
||||
if (string_is_equal(menu->menu_state_msg,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_INFORMATION_AVAILABLE)))
|
||||
{
|
||||
get_current_menu_sublabel(
|
||||
menu_st,
|
||||
menu->menu_state_msg, sizeof(menu->menu_state_msg));
|
||||
if (string_is_equal(menu->menu_state_msg, ""))
|
||||
strlcpy(menu->menu_state_msg,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_INFORMATION_AVAILABLE),
|
||||
sizeof(menu->menu_state_msg));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user