mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-14 03:16:40 +10:00
Make loader path mandatory only for non unlocked devices
This commit is contained in:
@@ -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()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user