[DatFile, FIleTools] Fix .chd extension... again

This commit is contained in:
Matt Nadareski
2017-10-31 14:21:08 -07:00
parent 86eab2d1cb
commit 178ddcd7d9
2 changed files with 6 additions and 6 deletions

View File

@@ -3826,6 +3826,12 @@ namespace SabreTools.Library.DatFiles
datItem.MachineName = gamename;
datItem.MachineDescription = gamename;
// If we have a Disk, then the ".chd" extension needs to be removed
if (datItem.Type == ItemType.Disk)
{
datItem.Name = datItem.Name.Replace(".chd", "");
}
// Add the file information to the DAT
Add(key, datItem);