Merge pull request #1254 from LostDragonist/winver_fix

Fix detection of Windows 10 versions
This commit is contained in:
Timothy Baldridge 2021-01-10 19:09:02 -07:00 committed by GitHub
commit 13c39d3d27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ namespace Wabbajack
Utils.Log($"Detected Windows Version: {p.WindowsVersion}"); 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))
Utils.Log( 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."); $"You are not running a recent version of Windows (version 10 or greater), Wabbajack is not supported on OS versions older than Windows 10.");
@ -83,7 +83,7 @@ namespace Wabbajack
catch (Exception ex) catch (Exception ex)
{ {
Utils.LogStraightToFile("Error"); Utils.LogStraightToFile("Error");
Utils.LogStraightToFile(ex.ToString()); Utils.LogStraightToFile(ex.ToString());
Environment.Exit(-1); Environment.Exit(-1);
} }
} }