mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
Changed Romload to show all actual hashes on a mismatch
This commit is contained in:
parent
b8a72b6aac
commit
4af745e751
@ -439,8 +439,11 @@ void rom_load_manager::verify_length_and_hash(const char *name, u32 explength, c
|
|||||||
else if (hashes != acthashes)
|
else if (hashes != acthashes)
|
||||||
{
|
{
|
||||||
/* otherwise, it's just bad */
|
/* otherwise, it's just bad */
|
||||||
|
util::hash_collection &all_acthashes = acthashes.hash_types() == util::hash_collection::HASH_TYPES_ALL
|
||||||
|
? acthashes
|
||||||
|
: m_file->hashes(util::hash_collection::HASH_TYPES_ALL);
|
||||||
m_errorstring.append(string_format("%s WRONG CHECKSUMS:\n", name));
|
m_errorstring.append(string_format("%s WRONG CHECKSUMS:\n", name));
|
||||||
dump_wrong_and_correct_checksums(hashes, acthashes);
|
dump_wrong_and_correct_checksums(hashes, all_acthashes);
|
||||||
m_warnings++;
|
m_warnings++;
|
||||||
}
|
}
|
||||||
/* If it matches, but it is actually a bad dump, write it */
|
/* If it matches, but it is actually a bad dump, write it */
|
||||||
|
Loading…
Reference in New Issue
Block a user