mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-30 14:53:39 +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);
|
||||
|
||||
for (i = 0; i < opts; i++)
|
||||
if (opts == 0)
|
||||
{
|
||||
menu_list_push(info->list,
|
||||
core_option_get_desc(system->core_options, i), "",
|
||||
MENU_SETTINGS_CORE_OPTION_START + i, 0, 0);
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_NO_CORE_OPTIONS_AVAILABLE), "",
|
||||
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
|
||||
menu_list_push(info->list,
|
||||
|
Loading…
Reference in New Issue
Block a user