Fixes a regression in the bios menu that caused all devices to be displayed

This commit is contained in:
Nathan Woods 2016-08-11 08:14:37 -04:00
parent 74fc59935f
commit f18f094fdc

View File

@ -78,7 +78,7 @@ void menu_bios_selection::populate()
/* cycle through all devices for this system */
for (device_t &device : device_iterator(machine().root_device()))
{
if (device.rom_region())
if (device.rom_region() != nullptr && !ROMENTRY_ISEND(device.rom_region()))
{
const char *val = "default";
for (const rom_entry *rom = device.rom_region(); !ROMENTRY_ISEND(rom); rom++)