mirror of
https://github.com/holub/mame
synced 2025-05-28 16:43:04 +03:00
02680: carnevil: -verifyrom fails to consider if a CHD is a BAD_DUMP
This commit is contained in:
parent
022d56f461
commit
2bce10291f
@ -501,12 +501,16 @@ static int audit_one_disk(core_options *options, const rom_entry *rom, const gam
|
|||||||
|
|
||||||
/* found but needs a dump */
|
/* found but needs a dump */
|
||||||
if (hash_data_has_info(record->exphash, HASH_INFO_NO_DUMP))
|
if (hash_data_has_info(record->exphash, HASH_INFO_NO_DUMP))
|
||||||
set_status(record, AUDIT_STATUS_GOOD, SUBSTATUS_GOOD_NEEDS_REDUMP);
|
set_status(record, AUDIT_STATUS_GOOD, SUBSTATUS_FOUND_NODUMP);
|
||||||
|
|
||||||
/* incorrect hash */
|
/* incorrect hash */
|
||||||
else if (!hash_data_is_equal(record->exphash, record->hash, 0))
|
else if (!hash_data_is_equal(record->exphash, record->hash, 0))
|
||||||
set_status(record, AUDIT_STATUS_FOUND_INVALID, SUBSTATUS_FOUND_BAD_CHECKSUM);
|
set_status(record, AUDIT_STATUS_FOUND_INVALID, SUBSTATUS_FOUND_BAD_CHECKSUM);
|
||||||
|
|
||||||
|
/* correct hash but needs a redump */
|
||||||
|
else if (hash_data_has_info(record->exphash, HASH_INFO_BAD_DUMP))
|
||||||
|
set_status(record, AUDIT_STATUS_GOOD, SUBSTATUS_GOOD_NEEDS_REDUMP);
|
||||||
|
|
||||||
/* just plain good */
|
/* just plain good */
|
||||||
else
|
else
|
||||||
set_status(record, AUDIT_STATUS_GOOD, SUBSTATUS_GOOD);
|
set_status(record, AUDIT_STATUS_GOOD, SUBSTATUS_GOOD);
|
||||||
|
Loading…
Reference in New Issue
Block a user