mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Emtpy name is not fun
This commit is contained in:
@@ -177,6 +177,7 @@ namespace SabreTools
|
||||
string[] splitPath = _basePath.Split(Path.DirectorySeparatorChar);
|
||||
_name = (_name == "" ? (inputs.Count > 1 ? Environment.CurrentDirectory.Split(Path.DirectorySeparatorChar).Last() :
|
||||
(_basePath.EndsWith(Path.DirectorySeparatorChar.ToString()) ? splitPath[splitPath.Length - 2] : splitPath.Last())) : _name);
|
||||
_name = (_name == "" ? "Default " : _name);
|
||||
_desc = (_desc == "" ? _name + (_noDate ? "" : " (" + _date + ")") : _desc);
|
||||
|
||||
// Now write it all out as a DAT
|
||||
|
||||
Reference in New Issue
Block a user