mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
only show Disc Information if there is a cdrom drive in the system
This commit is contained in:
parent
3f366ae4ab
commit
070bc8dc0a
@ -2209,12 +2209,24 @@ static unsigned menu_displaylist_parse_information_list(
|
|||||||
count++;
|
count++;
|
||||||
|
|
||||||
#ifdef HAVE_CDROM
|
#ifdef HAVE_CDROM
|
||||||
if (menu_entries_append_enum(info->list,
|
{
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DISC_INFORMATION),
|
struct string_list *drive_list = cdrom_get_available_drives();
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_DISC_INFORMATION),
|
|
||||||
MENU_ENUM_LABEL_DISC_INFORMATION,
|
if (drive_list)
|
||||||
MENU_SETTING_ACTION, 0, 0))
|
{
|
||||||
count++;
|
if (drive_list->size)
|
||||||
|
{
|
||||||
|
if (menu_entries_append_enum(info->list,
|
||||||
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DISC_INFORMATION),
|
||||||
|
msg_hash_to_str(MENU_ENUM_LABEL_DISC_INFORMATION),
|
||||||
|
MENU_ENUM_LABEL_DISC_INFORMATION,
|
||||||
|
MENU_SETTING_ACTION, 0, 0))
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
|
||||||
|
string_list_free(drive_list);
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_NETWORKING
|
#ifdef HAVE_NETWORKING
|
||||||
|
Loading…
x
Reference in New Issue
Block a user