From f2d51558bcc6b78803486e9728d603b08a600b77 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 30 May 2016 12:05:54 -0700 Subject: [PATCH] [RomManipulation] Fix disk parsing in CMP DATs --- SabreHelper/RomManipulation.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SabreHelper/RomManipulation.cs b/SabreHelper/RomManipulation.cs index 9e6ff6a0..dc579f48 100644 --- a/SabreHelper/RomManipulation.cs +++ b/SabreHelper/RomManipulation.cs @@ -277,6 +277,12 @@ namespace SabreTools.Helper } } + // If we have a disk, make sure that the value for size is -1 + if (rom.Type == "disk") + { + rom.Size = -1; + } + // Now add the rom to the dictionary string key = rom.Size + "-" + rom.CRC; if (datdata.Roms.ContainsKey(key))