Normalize file path in CLI (fixes #826)

This commit is contained in:
Matt Nadareski
2025-04-30 08:53:20 -04:00
parent c1641d7461
commit 3be4378b61
2 changed files with 5 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
- Fix typo for L1Toolstamp!.Label (bikerspade)
- Update redumper to build 549
- Allow max speed dumping ("0")
- Normalize file path in CLI
### 3.3.0 (2025-01-03)

View File

@@ -104,6 +104,10 @@ namespace MPF.CLI
return;
}
// Normalize the file path
if (opts.FilePath != null)
opts.FilePath = Path.GetFullPath(opts.FilePath);
// Get the speed from the options
int speed = opts.DriveSpeed ?? FrontendTool.GetDefaultSpeedForMediaType(mediaType, options);