Merge pull request #1208 from npwoods/fix_bios_rom_walk

This should fix a regression incurred from the rom_entry changes identified by MASH
This commit is contained in:
hap 2016-08-09 23:41:42 +02:00 committed by GitHub
commit 2bac1002b3

View File

@ -579,8 +579,7 @@ void info_xml_creator::output_rom(device_t &device)
if (!is_disk && is_bios)
{
// scan backwards through the ROM entries
auto entries = rom_build_entries(m_drivlist.driver().rom);
for (const rom_entry *brom = entries.data(); !ROMENTRY_ISEND(brom); brom++)
for (const rom_entry *brom = rom - 1; brom != device.rom_region(); brom--)
if (ROMENTRY_ISSYSTEM_BIOS(brom))
{
strcpy(bios_name, ROM_GETNAME(brom));