[FileTools] Make sure to remove the .chd extension

This commit is contained in:
Matt Nadareski
2017-10-31 13:09:47 -07:00
parent a4bde9c0db
commit 86eab2d1cb

View File

@@ -264,6 +264,12 @@ namespace SabreTools.Library.Tools
((Rom)datItem).Date = (date ? new FileInfo(input).LastWriteTime.ToString("yyyy/MM/dd HH:mm:ss") : "");
}
// If we have a Disk, then the ".chd" extension needs to be removed
if (datItem.Type == ItemType.Disk)
{
datItem.Name = datItem.Name.Replace(".chd", "");
}
return datItem;
}