Previous 15994 Revisions Next

r12490 Friday 5th August, 2011 at 12:02:20 UTC by Miodrag Milanović
Listcrc now display device name for additional roms (no whatsnew)
[src/emu]clifront.c

src/emu/clifront.c
r12489r12490
460460
461461   // iterate through matches, and then through ROMs
462462   while (drivlist.next())
463      for (const rom_source *source = rom_first_source(drivlist.config()); source != NULL; source = rom_next_source(*source))
463      for (const rom_source *source = rom_first_source(drivlist.config()); source != NULL; source = rom_next_source(*source))
464      {
465         bool isdiver = (source == rom_first_source(drivlist.config()));
464466         for (const rom_entry *region = rom_first_region(*source); region; region = rom_next_region(region))
465467            for (const rom_entry *rom = rom_first_file(region); rom; rom = rom_next_file(rom))
466468            {
467469               // if we have a CRC, display it
468470               UINT32 crc;
469471               if (hash_collection(ROM_GETHASHDATA(rom)).crc(crc))
470                  mame_printf_info("%08x %-16s %s\n", crc, ROM_GETNAME(rom), drivlist.driver().description);
472                  mame_printf_info("%08x %-16s %s\n", crc, ROM_GETNAME(rom), isdiver ? drivlist.driver().description : source->name());
471473            }
474      }
472475}
473476
474477

Previous 15994 Revisions Next


© 1998-2018 The MESS Team