Previous 199869 Revisions Next

r23517 Friday 7th June, 2013 at 12:19:25 UTC by Miodrag Milanović
when looking into merge sets look just root device (nw)
[src/emu]info.c

trunk/src/emu/info.c
r23516r23517
13661366   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))
13671367   {
13681368      // 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)
13731375            {
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;
13811379            }
1380         }
13821381   }
13831382
13841383   return merge_name;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team