From 1e1d2c7b63f18eff48293a448371fa866d6e2da3 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 13 Feb 2022 22:49:33 -0800 Subject: [PATCH] Move path normalization to better place --- CHANGELIST.md | 1 + MPF/ViewModels/MainViewModel.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index 024e9e8a..e0a5d519 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -8,6 +8,7 @@ - Add option to limit region and language selections - Cap X360 directory check to 500MB - Assign normalized path to parameters +- Move path normalization to better place ### 2.3 (2022-02-05) - Start overhauling Redump information pulling, again diff --git a/MPF/ViewModels/MainViewModel.cs b/MPF/ViewModels/MainViewModel.cs index 5b6b152f..80ba7a28 100644 --- a/MPF/ViewModels/MainViewModel.cs +++ b/MPF/ViewModels/MainViewModel.cs @@ -1202,9 +1202,6 @@ namespace MPF.GUI.ViewModels // One last check to determine environment, just in case Env = DetermineEnvironment(); - // Run path adjustments for DiscImageCreator - Env.AdjustPathsForDiscImageCreator(); - // If still in custom parameter mode, check that users meant to continue or not if (App.Instance.EnableParametersCheckBox.IsChecked == true) { @@ -1220,6 +1217,9 @@ namespace MPF.GUI.ViewModels // If "No", then we continue with the current known environment } + // Run path adjustments for DiscImageCreator + Env.AdjustPathsForDiscImageCreator(); + try { // Validate that the user explicitly wants an inactive drive to be considered for dumping