mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix odd output naming for conversion dats
This commit is contained in:
@@ -1303,9 +1303,8 @@ Make a selection:
|
||||
outdir = outdir.Replace("\"", "");
|
||||
if (outdir != "")
|
||||
{
|
||||
outdir = Path.GetFullPath(outdir);
|
||||
outdir = Path.GetFullPath(outdir) + Path.DirectorySeparatorChar;
|
||||
}
|
||||
Console.WriteLine(outdir);
|
||||
filename = filename.Replace("\"", "");
|
||||
|
||||
if (File.Exists(filename))
|
||||
@@ -1380,7 +1379,7 @@ Make a selection:
|
||||
datdata.Description += ".new";
|
||||
}
|
||||
|
||||
Output.WriteDatfile(datdata, (outdir == "" ? Path.GetDirectoryName(file) : outdir + Path.DirectorySeparatorChar + Path.GetDirectoryName(file).Remove(0, filename.Length)), logger);
|
||||
Output.WriteDatfile(datdata, (outdir == "" ? Path.GetDirectoryName(file) : outdir + Path.GetDirectoryName(file).Remove(0, filename.Length + 1)), logger);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user