mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile, FIleTools] Fix .chd extension... again
This commit is contained in:
@@ -3826,6 +3826,12 @@ namespace SabreTools.Library.DatFiles
|
|||||||
datItem.MachineName = gamename;
|
datItem.MachineName = gamename;
|
||||||
datItem.MachineDescription = 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 the file information to the DAT
|
||||||
Add(key, datItem);
|
Add(key, datItem);
|
||||||
|
|
||||||
|
|||||||
@@ -264,12 +264,6 @@ namespace SabreTools.Library.Tools
|
|||||||
((Rom)datItem).Date = (date ? new FileInfo(input).LastWriteTime.ToString("yyyy/MM/dd HH:mm:ss") : "");
|
((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;
|
return datItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user