[DatFile, Utilities] Make split paths more intuitive

This commit is contained in:
Matt Nadareski
2017-12-01 15:28:41 -08:00
parent 3a6f673bf1
commit 0a09952eda
2 changed files with 24 additions and 25 deletions

View File

@@ -2050,13 +2050,15 @@ namespace SabreTools.Library.Tools
/// <param name="outDir">Output directory to use</param>
/// <param name="inputpath">Input path to create output for</param>
/// <param name="inplace">True if the output file should go to the same input folder, false otherwise</param>
/// <param name="splitpath">True if the input path should be treated as an appended parent directory, false otherwise (default)</param>
/// <returns>Complete output path</returns>
public static string GetOutputPath(string outDir, string inputpath, bool inplace, bool splitpath = false)
public static string GetOutputPath(string outDir, string inputpath, bool inplace)
{
// First, we need to ensure the output directory
outDir = EnsureOutputDirectory(outDir);
// Check if we have a split path or not
bool splitpath = inputpath.Contains("¬");
// If we have a split path, we need to treat the input separately
if (splitpath)
{