Merge pull request #1229 from npwoods/fix_bios_menu

Fixes a regression in the bios menu that caused all devices to be displayed
This commit is contained in:
Vas Crabb 2016-08-11 22:51:54 +10:00 committed by GitHub
commit fd7093db6c

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++)