Listcrc now display device name for additional roms (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2011-08-05 12:01:32 +00:00
parent 462ebd92e3
commit 167deddcfe

View File

@ -461,14 +461,17 @@ void cli_frontend::listcrc(const char *gamename)
// iterate through matches, and then through ROMs
while (drivlist.next())
for (const rom_source *source = rom_first_source(drivlist.config()); source != NULL; source = rom_next_source(*source))
{
bool isdiver = (source == rom_first_source(drivlist.config()));
for (const rom_entry *region = rom_first_region(*source); region; region = rom_next_region(region))
for (const rom_entry *rom = rom_first_file(region); rom; rom = rom_next_file(rom))
{
// if we have a CRC, display it
UINT32 crc;
if (hash_collection(ROM_GETHASHDATA(rom)).crc(crc))
mame_printf_info("%08x %-16s %s\n", crc, ROM_GETNAME(rom), drivlist.driver().description);
mame_printf_info("%08x %-16s %s\n", crc, ROM_GETNAME(rom), isdiver ? drivlist.driver().description : source->name());
}
}
}