[DatFile, Utilities] Extensions

This commit is contained in:
Matt Nadareski
2017-12-05 13:26:25 -08:00
parent f561f189ae
commit 58c5939514
4 changed files with 104 additions and 33 deletions

View File

@@ -293,11 +293,7 @@ namespace SabreTools.Library.DatFiles
}
else if (rom.Type == ItemType.Rom)
{
string tempext = Path.GetExtension(((Rom)rom).Name);
if (!tempext.StartsWith("."))
{
tempext = "." + tempext;
}
string tempext = "." + Utilities.GetExtension(((Rom)rom).Name);
state += "\t\t\t<files>\n"
+ (((Rom)rom).CRC != null