diff --git a/ViewModels/LumiaUnlockBootloaderViewModel.cs b/ViewModels/LumiaUnlockBootloaderViewModel.cs index ddd0c9d..c03035e 100644 --- a/ViewModels/LumiaUnlockBootloaderViewModel.cs +++ b/ViewModels/LumiaUnlockBootloaderViewModel.cs @@ -698,9 +698,6 @@ namespace WPinternals if ((FFUPath == null) || (FFUPath.Length == 0)) throw new ArgumentNullException("FFU path is missing"); - if ((LoadersPath == null) || (LoadersPath.Length == 0)) - throw new Exception("Error: Path for Loaders is mandatory."); - bool DumpPartitions = false; string DumpFilePrefix = Environment.ExpandEnvironmentVariables("%ALLUSERSPROFILE%\\WPInternals\\") + DateTime.Now.ToString("yyyy-MM-dd hh.mm.ss") + " - "; bool IsBootLoaderUnlocked = false; @@ -728,6 +725,12 @@ namespace WPinternals IsBootLoaderUnlocked = (SecurityStatus.AuthenticationStatus || SecurityStatus.RdcStatus || !SecurityStatus.SecureFfuEfuseStatus); } + if (!IsBootLoaderUnlocked) + { + if ((LoadersPath == null) || (LoadersPath.Length == 0)) + throw new Exception("Error: Path for Loaders is mandatory."); + } + FFU SupportedFFU = null; if (App.PatchEngine.PatchDefinitions.Where(p => p.Name == "SecureBootHack-V1.1-EFIESP").First().TargetVersions.Any(v => v.Description == FFU.GetOSVersion())) {