(nw) allow BIOS declaration before first ROM region

This commit is contained in:
Vas Crabb 2018-06-02 03:33:25 +10:00
parent ea579a59a8
commit fd41b35c2a

View File

@ -68,7 +68,7 @@ std::unique_ptr<emu_file> common_process_file(emu_options &options, const char *
const rom_entry *rom_first_region(const device_t &device)
{
const rom_entry *romp = &device.rom_region_vector().front();
while (ROMENTRY_ISPARAMETER(romp))
while (ROMENTRY_ISPARAMETER(romp) || ROMENTRY_ISSYSTEM_BIOS(romp) || ROMENTRY_ISDEFAULT_BIOS(romp))
romp++;
return !ROMENTRY_ISEND(romp) ? romp : nullptr;
}