[DatFile] Remove extension when possible for ORPG

This commit is contained in:
Matt Nadareski
2018-03-20 17:40:49 -07:00
parent c1bdff9bbf
commit dfc2db2736

View File

@@ -2546,7 +2546,8 @@ namespace SabreTools.Library.DatFiles
List<DatItem> items = this[key];
for (int i = 0; i < items.Count; i++)
{
items[i].MachineName += "/" + items[i].Name;
string[] splitname = items[i].Name.Split('.');
items[i].MachineName += "/" + string.Join(".", splitname.Take(splitname.Length > 1 ? splitname.Length - 1 : 1));
}
});
}