mirror of
https://github.com/holub/mame
synced 2025-05-23 14:19:01 +03:00
Listcrc now display device name for additional roms (no whatsnew)
This commit is contained in:
parent
462ebd92e3
commit
167deddcfe
@ -461,13 +461,16 @@ 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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user