[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:
Matt Nadareski
2016-09-19 20:36:12 -07:00
parent b549085c34
commit 1db04406c3
12 changed files with 266 additions and 293 deletions

View File

@@ -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