[DatFile, Utilities] Use subpath where possible

Using the subpath in the name of the output file can sometimes help distinguish which verison of a file is being used if the numbering doesn't help.
This commit is contained in:
Matt Nadareski
2018-04-23 13:03:15 -07:00
parent 46dbbaae96
commit 284568bc33
2 changed files with 30 additions and 2 deletions

View File

@@ -1684,7 +1684,7 @@ namespace SabreTools.Library.DatFiles
Parallel.For(0, inputs.Count, Globals.ParallelOptions, j =>
{
string innerpost = " (" + j + " - " + Path.GetFileNameWithoutExtension(inputs[j].Split('¬')[0]) + " Only)";
string innerpost = " (" + j + " - " + Utilities.GetFilenameFromFileAndParent(inputs[j], true) + " Only)";
DatFile diffData;
// If we're in inplace mode, take the appropriate DatData object already stored
@@ -1816,7 +1816,7 @@ namespace SabreTools.Library.DatFiles
Parallel.For(0, inputs.Count, Globals.ParallelOptions, j =>
{
string innerpost = " (" + j + " - " + Path.GetFileNameWithoutExtension(inputs[j].Split('¬')[0]) + " Only)";
string innerpost = " (" + j + " - " + Utilities.GetFilenameFromFileAndParent(inputs[j], true) + " Only)";
DatFile diffData = new DatFile(this);
diffData.FileName += innerpost;
diffData.Name += innerpost;