Try to fix output path checks (fixes #111)

This commit is contained in:
Matt Nadareski
2018-08-17 20:16:13 -07:00
parent 76b549d773
commit 82eabc12ca
2 changed files with 6 additions and 1 deletions

View File

@@ -354,7 +354,7 @@ namespace DICUI
/// <returns>Filled DumpEnvironment instance</returns>
private DumpEnvironment DetermineEnvironment()
{
return new DumpEnvironment()
var env = new DumpEnvironment()
{
// Paths to tools
SubdumpPath = _options.SubDumpPath,
@@ -376,6 +376,9 @@ namespace DICUI
System = SystemTypeComboBox.SelectedItem as KnownSystemComboBoxItem,
Type = MediaTypeComboBox.SelectedItem as MediaType?
};
env.FixOutputPaths();
return env;
}
/// <summary>

View File

@@ -187,6 +187,8 @@ namespace DICUI.Utilities
if (Drive == null)
return null;
FixOutputPaths();
// Set the proper parameters
DICParameters = new Parameters(System, Type, Drive.Letter, Path.Combine(OutputDirectory, OutputFilename), driveSpeed, ParanoidMode, RereadAmountC2);
if (QuietMode)