mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Treat CHDs fairly in sort
This commit is contained in:
@@ -3576,9 +3576,17 @@ namespace SabreTools.Library.DatFiles
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, we rebuild that file to all locations that we need to
|
// Otherwise, we rebuild that file to all locations that we need to
|
||||||
RebuildIndividualFile(new Rom(fileinfo), foundpath, outDir, date, inverse, outputFormat, romba,
|
if (this[hash][0].Type == ItemType.Disk)
|
||||||
updateDat, false /* isZip */, headerToCheckAgainst);
|
{
|
||||||
|
RebuildIndividualFile(new Disk(fileinfo), foundpath, outDir, date, inverse, outputFormat, romba,
|
||||||
|
updateDat, false /* isZip */, headerToCheckAgainst);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
RebuildIndividualFile(new Rom(fileinfo), foundpath, outDir, date, inverse, outputFormat, romba,
|
||||||
|
updateDat, false /* isZip */, headerToCheckAgainst);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
watch.Stop();
|
watch.Stop();
|
||||||
@@ -4268,7 +4276,8 @@ namespace SabreTools.Library.DatFiles
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Now we want to remove all duplicates from the DAT
|
// Now we want to remove all duplicates from the DAT
|
||||||
new Rom(fileinfo).GetDuplicates(this, remove: true);
|
new Rom(fileinfo).GetDuplicates(this, remove: true)
|
||||||
|
.AddRange(new Disk(fileinfo).GetDuplicates(this, remove: true));
|
||||||
}
|
}
|
||||||
|
|
||||||
watch.Stop();
|
watch.Stop();
|
||||||
|
|||||||
Reference in New Issue
Block a user