mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Handle usecase where a core has no core options
This commit is contained in:
parent
57ae359e62
commit
9b997b4e70
@ -2379,10 +2379,19 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
|||||||
{
|
{
|
||||||
size_t opts = core_option_size(system->core_options);
|
size_t opts = core_option_size(system->core_options);
|
||||||
|
|
||||||
for (i = 0; i < opts; i++)
|
if (opts == 0)
|
||||||
|
{
|
||||||
menu_list_push(info->list,
|
menu_list_push(info->list,
|
||||||
core_option_get_desc(system->core_options, i), "",
|
menu_hash_to_str(MENU_LABEL_VALUE_NO_CORE_OPTIONS_AVAILABLE), "",
|
||||||
MENU_SETTINGS_CORE_OPTION_START + i, 0, 0);
|
MENU_SETTINGS_CORE_OPTION_NONE, 0, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (i = 0; i < opts; i++)
|
||||||
|
menu_list_push(info->list,
|
||||||
|
core_option_get_desc(system->core_options, i), "",
|
||||||
|
MENU_SETTINGS_CORE_OPTION_START + i, 0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
menu_list_push(info->list,
|
menu_list_push(info->list,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user