mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
Previous check gave false positives, also slot devices can gave empty rom regions so that have to be marked on output (no whatsnew)
This commit is contained in:
parent
dd9f8aa093
commit
e1439dfa3f
@ -802,11 +802,11 @@ void cli_frontend::verifyroms(const char *gamename)
|
|||||||
device_iterator iter(config.root_device());
|
device_iterator iter(config.root_device());
|
||||||
for (device_t *dev = iter.first(); dev != NULL; dev = iter.next())
|
for (device_t *dev = iter.first(); dev != NULL; dev = iter.next())
|
||||||
{
|
{
|
||||||
if (mame_strwildcmp(gamename, dev->shortname()) == 0)
|
if ((strlen(dev->shortname()) > 0) && (mame_strwildcmp(gamename, dev->shortname()) == 0))
|
||||||
{
|
{
|
||||||
matched++;
|
matched++;
|
||||||
|
|
||||||
if (dev->owner() != NULL && (strlen(dev->shortname()) > 0) && dev->rom_region() != NULL && (device_map.add(dev->shortname(), 0, false) != TMERR_DUPLICATE))
|
if (dev->owner() != NULL && dev->rom_region() != NULL && (device_map.add(dev->shortname(), 0, false) != TMERR_DUPLICATE))
|
||||||
{
|
{
|
||||||
// audit the ROMs in this set
|
// audit the ROMs in this set
|
||||||
media_auditor::summary summary = auditor.audit_device(dev, AUDIT_VALIDATE_FAST);
|
media_auditor::summary summary = auditor.audit_device(dev, AUDIT_VALIDATE_FAST);
|
||||||
@ -867,7 +867,7 @@ void cli_frontend::verifyroms(const char *gamename)
|
|||||||
if (!device->configured())
|
if (!device->configured())
|
||||||
device->config_complete();
|
device->config_complete();
|
||||||
|
|
||||||
if (mame_strwildcmp(gamename, dev->shortname()) == 0)
|
if ((strlen(dev->shortname()) > 0) && (mame_strwildcmp(gamename, dev->shortname()) == 0))
|
||||||
{
|
{
|
||||||
matched++;
|
matched++;
|
||||||
|
|
||||||
@ -910,6 +910,7 @@ void cli_frontend::verifyroms(const char *gamename)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
mame_printf_info("has no roms!\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user