Use relative path internally (#589)

This commit is contained in:
Deterous
2023-10-27 02:17:17 +13:00
committed by GitHub
parent 0b0d13dcf3
commit ceb305eb54
2 changed files with 3 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ namespace MPF.Core
Options = options;
// Output paths
OutputPath = InfoTool.NormalizeOutputPaths(outputPath, true);
OutputPath = InfoTool.NormalizeOutputPaths(outputPath, false);
// UI information
Drive = drive;
@@ -575,7 +575,7 @@ namespace MPF.Core
return Result.Failure("Error! Current configuration is not supported!");
// Fix the output paths, just in case
OutputPath = InfoTool.NormalizeOutputPaths(OutputPath, true);
OutputPath = InfoTool.NormalizeOutputPaths(OutputPath, false);
// Validate that the output path isn't on the dumping drive
if (Drive?.Name != null && OutputPath.StartsWith(Drive.Name))

View File

@@ -1451,7 +1451,7 @@ namespace MPF.Core.UI.ViewModels
// Disable change handling
DisableEventHandlers();
this.OutputPath = InfoTool.NormalizeOutputPaths(_environment.Parameters?.OutputPath, true);
this.OutputPath = InfoTool.NormalizeOutputPaths(_environment.Parameters?.OutputPath, false);
if (MediaTypes != null)
{