mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-21 14:41:03 +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))
|
if ((FFUPath == null) || (FFUPath.Length == 0))
|
||||||
throw new ArgumentNullException("FFU path is missing");
|
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;
|
bool DumpPartitions = false;
|
||||||
string DumpFilePrefix = Environment.ExpandEnvironmentVariables("%ALLUSERSPROFILE%\\WPInternals\\") + DateTime.Now.ToString("yyyy-MM-dd hh.mm.ss") + " - ";
|
string DumpFilePrefix = Environment.ExpandEnvironmentVariables("%ALLUSERSPROFILE%\\WPInternals\\") + DateTime.Now.ToString("yyyy-MM-dd hh.mm.ss") + " - ";
|
||||||
bool IsBootLoaderUnlocked = false;
|
bool IsBootLoaderUnlocked = false;
|
||||||
@@ -728,6 +725,12 @@ namespace WPinternals
|
|||||||
IsBootLoaderUnlocked = (SecurityStatus.AuthenticationStatus || SecurityStatus.RdcStatus || !SecurityStatus.SecureFfuEfuseStatus);
|
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;
|
FFU SupportedFFU = null;
|
||||||
if (App.PatchEngine.PatchDefinitions.Where(p => p.Name == "SecureBootHack-V1.1-EFIESP").First().TargetVersions.Any(v => v.Description == FFU.GetOSVersion()))
|
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