trunk/src/emu/info.c
| r23516 | r23517 | |
| 1366 | 1366 | for (int clone_of = m_drivlist.find(m_drivlist.driver().parent); clone_of != -1; clone_of = m_drivlist.find(m_drivlist.driver(clone_of).parent)) |
| 1367 | 1367 | { |
| 1368 | 1368 | // look in the parent's ROMs |
| 1369 | | device_iterator deviter(m_drivlist.config(clone_of, m_lookup_options).root_device()); |
| 1370 | | for (device_t *device = deviter.first(); device != NULL; device = deviter.next()) |
| 1371 | | for (const rom_entry *pregion = rom_first_region(*device); pregion != NULL; pregion = rom_next_region(pregion)) |
| 1372 | | for (const rom_entry *prom = rom_first_file(pregion); prom != NULL; prom = rom_next_file(prom)) |
| 1369 | device_t *device = &m_drivlist.config(clone_of, m_lookup_options).root_device(); |
| 1370 | for (const rom_entry *pregion = rom_first_region(*device); pregion != NULL; pregion = rom_next_region(pregion)) |
| 1371 | for (const rom_entry *prom = rom_first_file(pregion); prom != NULL; prom = rom_next_file(prom)) |
| 1372 | { |
| 1373 | hash_collection phashes(ROM_GETHASHDATA(prom)); |
| 1374 | if (!phashes.flag(hash_collection::FLAG_NO_DUMP) && romhashes == phashes) |
| 1373 | 1375 | { |
| 1374 | | hash_collection phashes(ROM_GETHASHDATA(prom)); |
| 1375 | | if (!phashes.flag(hash_collection::FLAG_NO_DUMP) && romhashes == phashes) |
| 1376 | | { |
| 1377 | | // stop when we find a match |
| 1378 | | merge_name = ROM_GETNAME(prom); |
| 1379 | | break; |
| 1380 | | } |
| 1376 | // stop when we find a match |
| 1377 | merge_name = ROM_GETNAME(prom); |
| 1378 | break; |
| 1381 | 1379 | } |
| 1380 | } |
| 1382 | 1381 | } |
| 1383 | 1382 | |
| 1384 | 1383 | return merge_name; |