mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile, SabreTools, Utilities] Fix DFD hashing issue
This commit is contained in:
@@ -3332,7 +3332,8 @@ namespace SabreTools.Library.DatFiles
|
||||
// If neither the name or description are defined, set them from the automatic values
|
||||
else if (String.IsNullOrWhiteSpace(Name) && String.IsNullOrWhiteSpace(Description))
|
||||
{
|
||||
Name = basePath.Split(Path.DirectorySeparatorChar).Last();
|
||||
string[] splitpath = basePath.Split(Path.DirectorySeparatorChar);
|
||||
Name = String.IsNullOrWhiteSpace(splitpath.Last()) ? splitpath[splitpath.Length - 2] : splitpath.Last();
|
||||
Description = Name + (bare ? "" : " (" + Date + ")");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user