mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Remove extension when possible for ORPG
This commit is contained in:
@@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user