mirror of
https://github.com/holub/mame
synced 2025-06-04 11:56:28 +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)
|
||||||
@ -803,7 +805,7 @@ void cli_frontend::verifyroms(const char *gamename)
|
|||||||
machine_config &config = dummy_drivlist.config();
|
machine_config &config = dummy_drivlist.config();
|
||||||
device_t *owner = config.devicelist().first();
|
device_t *owner = config.devicelist().first();
|
||||||
// check if all are listed, note that empty one is included
|
// check if all are listed, note that empty one is included
|
||||||
for (int i=0;i<m_device_count;i++)
|
for (int i = 0; i < m_device_count; i++)
|
||||||
{
|
{
|
||||||
device_type type = *s_devices_sorted[i];
|
device_type type = *s_devices_sorted[i];
|
||||||
device_t *dev = (*type)(config, "dummy", owner, 0);
|
device_t *dev = (*type)(config, "dummy", owner, 0);
|
||||||
@ -862,7 +864,7 @@ void cli_frontend::verifyroms(const char *gamename)
|
|||||||
zip_file_cache_clear();
|
zip_file_cache_clear();
|
||||||
|
|
||||||
// return an error if none found
|
// return an error if none found
|
||||||
if (matched==0)
|
if (matched == 0)
|
||||||
throw emu_fatalerror(MAMERR_NO_SUCH_GAME, "No matching games found for '%s'", gamename);
|
throw emu_fatalerror(MAMERR_NO_SUCH_GAME, "No matching games found for '%s'", gamename);
|
||||||
|
|
||||||
// if we didn't get anything at all, display a generic end message
|
// if we didn't get anything at all, display a generic end message
|
||||||
@ -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