mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-23 18:29:39 +00:00
make intel driver versions great again
This commit is contained in:
parent
c19dd01098
commit
4f268b6102
@ -449,6 +449,16 @@ namespace CompatBot.Utils.ResultFormatters
|
||||
return AmdDriverVersionProvider.GetFromVulkanAsync(result).ConfigureAwait(false).GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
if (gpu.Contains("Intel", StringComparison.InvariantCultureIgnoreCase)
|
||||
&& Version.TryParse(result, out var ver)
|
||||
&& ver.Minor > 400
|
||||
&& ver.Build >= 0)
|
||||
{
|
||||
var build = ((ver.Minor & 0b_11) << 12) | ver.Build;
|
||||
var minor = ver.Minor >> 2;
|
||||
return new Version(ver.Major, minor, build).ToString();
|
||||
}
|
||||
|
||||
if (result.EndsWith(".0.0"))
|
||||
result = result[..^4];
|
||||
if (result.Length > 3 && result[^2] == '.')
|
||||
|
Loading…
Reference in New Issue
Block a user