mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-01-09 12:22:26 +00:00
try to match amd driver version with minor revision changes
This commit is contained in:
parent
9182311a41
commit
0df6dd46e6
@ -79,6 +79,20 @@ namespace CompatBot.Database.Providers
|
||||
|
||||
return $"newer than {newest.vv} ({openglVersion})";
|
||||
}
|
||||
|
||||
var approximate = glVersions.FirstOrDefault(v => v.v.Minor == glVersion.Minor && v.v.Build == glVersion.Build);
|
||||
if (!string.IsNullOrEmpty(approximate.vv))
|
||||
return $"{approximate.vv} rev {glVersion.Revision}";
|
||||
|
||||
if (string.IsNullOrEmpty(approximate.vv))
|
||||
for (var i = 0; i < glVersions.Count - 1; i++)
|
||||
if (glVersion > glVersions[i].v && glVersion < glVersions[i + 1].v)
|
||||
{
|
||||
approximate = glVersions[i];
|
||||
break;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(approximate.vv))
|
||||
return $"probably {approximate.vv}";
|
||||
}
|
||||
|
||||
return openglVersion;
|
||||
|
Loading…
Reference in New Issue
Block a user