Fix detection of Windows 10 versions

This commit is contained in:
Chris Bessent 2021-01-09 23:04:05 -07:00
parent 019bd9282b
commit e6ba4abfdc

View File

@ -42,7 +42,8 @@ namespace Wabbajack
Utils.Log($"Detected Windows Version: {p.WindowsVersion}");
if (!(p.WindowsVersion.Major >= 6 && p.WindowsVersion.Minor >= 2))
if (!((p.WindowsVersion.Major >= 10 && p.WindowsVersion.Minor >= 0) ||
(p.WindowsVersion.Major >= 6 && p.WindowsVersion.Minor >= 2)))
Utils.Log(
$"You are not running a recent version of Windows (version 10 or greater), Wabbajack is not supported on OS versions older than Windows 10.");