mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ALL] Remove Hash struct
This is a bit controversial, even for me, but for the time being, we need to tie very specific information to each type of item. That means that a Rom and a Disk, though they both have hashes, they have different hashes. I'm going to see how this plays out for the time being.
This commit is contained in:
@@ -197,7 +197,7 @@ namespace SabreTools
|
||||
if (rom.Name != null)
|
||||
{
|
||||
// Add the list if it doesn't exist already
|
||||
string key = rom.HashData.Size + "-" + rom.HashData.CRC;
|
||||
string key = rom.Size + "-" + rom.CRC;
|
||||
|
||||
lock (_datdata.Files)
|
||||
{
|
||||
@@ -317,11 +317,11 @@ namespace SabreTools
|
||||
string key = "";
|
||||
if (datItem.Type == ItemType.Rom)
|
||||
{
|
||||
key = ((Rom)datItem).HashData.Size + "-" + ((Rom)datItem).HashData.CRC;
|
||||
key = ((Rom)datItem).Size + "-" + ((Rom)datItem).CRC;
|
||||
}
|
||||
else
|
||||
{
|
||||
key = ((Disk)datItem).HashData.Size + "-" + ((Disk)datItem).HashData.MD5;
|
||||
key = ((Disk)datItem).MD5;
|
||||
}
|
||||
|
||||
// Add the list if it doesn't exist already
|
||||
|
||||
Reference in New Issue
Block a user