Code de-duplication
This commit is contained in:
parent
19e42418cd
commit
3649ef508c
@ -79,32 +79,28 @@ namespace DerpingDrivers
|
|||||||
#region Windows 10, x64
|
#region Windows 10, x64
|
||||||
|
|
||||||
if (OsVersionInfo.IsWindows10
|
if (OsVersionInfo.IsWindows10
|
||||||
&& OsVersionInfo.OsBits == OsVersionInfo.SoftwareArchitecture.Bit64
|
&& OsVersionInfo.OsBits == OsVersionInfo.SoftwareArchitecture.Bit64)
|
||||||
&& UEFIHelper.IsRunningInUEFIMode
|
{
|
||||||
&& !UEFIHelper.IsSecureBootEnabled
|
if (UEFIHelper.IsRunningInUEFIMode
|
||||||
&& !OsUpgradeDetection.IsGrandfathered)
|
&& !UEFIHelper.IsSecureBootEnabled
|
||||||
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_clean);
|
&& !OsUpgradeDetection.IsGrandfathered)
|
||||||
|
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_clean);
|
||||||
|
|
||||||
if (OsVersionInfo.IsWindows10
|
if (UEFIHelper.IsRunningInUEFIMode
|
||||||
&& OsVersionInfo.OsBits == OsVersionInfo.SoftwareArchitecture.Bit64
|
&& UEFIHelper.IsSecureBootEnabled
|
||||||
&& UEFIHelper.IsRunningInUEFIMode
|
&& !OsUpgradeDetection.IsGrandfathered)
|
||||||
&& UEFIHelper.IsSecureBootEnabled
|
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_secure_clean);
|
||||||
&& !OsUpgradeDetection.IsGrandfathered)
|
|
||||||
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_secure_clean);
|
|
||||||
|
|
||||||
if (OsVersionInfo.IsWindows10
|
if (UEFIHelper.IsRunningInUEFIMode
|
||||||
&& OsVersionInfo.OsBits == OsVersionInfo.SoftwareArchitecture.Bit64
|
&& UEFIHelper.IsSecureBootEnabled
|
||||||
&& UEFIHelper.IsRunningInUEFIMode
|
&& OsUpgradeDetection.IsGrandfathered)
|
||||||
&& UEFIHelper.IsSecureBootEnabled
|
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_secure_upgraded);
|
||||||
&& OsUpgradeDetection.IsGrandfathered)
|
|
||||||
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_secure_upgraded);
|
|
||||||
|
|
||||||
if (OsVersionInfo.IsWindows10
|
if (UEFIHelper.IsRunningInUEFIMode
|
||||||
&& OsVersionInfo.OsBits == OsVersionInfo.SoftwareArchitecture.Bit64
|
&& !UEFIHelper.IsSecureBootEnabled
|
||||||
&& UEFIHelper.IsRunningInUEFIMode
|
&& OsUpgradeDetection.IsGrandfathered)
|
||||||
&& !UEFIHelper.IsSecureBootEnabled
|
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_upgraded);
|
||||||
&& OsUpgradeDetection.IsGrandfathered)
|
}
|
||||||
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_upgraded);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user