mirror of
https://github.com/holub/mame
synced 2025-07-08 03:12:37 +03:00
made handling of NONE_NEEDED audits a bit more coherent. no whatsnew.
This commit is contained in:
parent
69374d9553
commit
5594b84961
@ -149,6 +149,11 @@ m_searchpath = combinedpath;
|
|||||||
m_record_list.reset();
|
m_record_list.reset();
|
||||||
return NOTFOUND;
|
return NOTFOUND;
|
||||||
}
|
}
|
||||||
|
else if (required == 0)
|
||||||
|
{
|
||||||
|
m_record_list.reset();
|
||||||
|
return NONE_NEEDED;
|
||||||
|
}
|
||||||
|
|
||||||
// return a summary
|
// return a summary
|
||||||
return summarize(m_enumerator.driver().name);
|
return summarize(m_enumerator.driver().name);
|
||||||
@ -206,6 +211,11 @@ media_auditor::summary media_auditor::audit_device(device_t *device, const char
|
|||||||
m_record_list.reset();
|
m_record_list.reset();
|
||||||
return NOTFOUND;
|
return NOTFOUND;
|
||||||
}
|
}
|
||||||
|
else if (required == 0)
|
||||||
|
{
|
||||||
|
m_record_list.reset();
|
||||||
|
return NONE_NEEDED;
|
||||||
|
}
|
||||||
|
|
||||||
// return a summary
|
// return a summary
|
||||||
return summarize(device->shortname());
|
return summarize(device->shortname());
|
||||||
|
@ -755,6 +755,8 @@ void cli_frontend::verifyroms(const char *gamename)
|
|||||||
|
|
||||||
// audit the ROMs in this set
|
// audit the ROMs in this set
|
||||||
media_auditor::summary summary = auditor.audit_media(AUDIT_VALIDATE_FAST);
|
media_auditor::summary summary = auditor.audit_media(AUDIT_VALIDATE_FAST);
|
||||||
|
if (summary == media_auditor::NONE_NEEDED)
|
||||||
|
continue;
|
||||||
|
|
||||||
// if not found, count that and leave it at that
|
// if not found, count that and leave it at that
|
||||||
if (summary == media_auditor::NOTFOUND)
|
if (summary == media_auditor::NOTFOUND)
|
||||||
@ -871,7 +873,7 @@ void cli_frontend::verifyroms(const char *gamename)
|
|||||||
if (notfound > 0)
|
if (notfound > 0)
|
||||||
throw emu_fatalerror(MAMERR_MISSING_FILES, "romset \"%s\" not found!\n", gamename);
|
throw emu_fatalerror(MAMERR_MISSING_FILES, "romset \"%s\" not found!\n", gamename);
|
||||||
else
|
else
|
||||||
throw emu_fatalerror(MAMERR_MISSING_FILES, "romset \"%s\" not supported!\n", gamename);
|
throw emu_fatalerror(MAMERR_MISSING_FILES, "romset \"%s\" has no roms!\n", gamename);
|
||||||
}
|
}
|
||||||
|
|
||||||
// otherwise, print a summary
|
// otherwise, print a summary
|
||||||
|
Loading…
Reference in New Issue
Block a user