mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Precise Mono versions affected by bug 41701
This commit is contained in:
@@ -62,11 +62,21 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
Version monoVersion = GetMonoVersion();
|
||||
if (monoVersion == null) {
|
||||
|
||||
// The issue affects Mono versions from 4.3.2, 4.4.0 to 4.4.2 (inclusive) and from 4.5.0 to 4.5.2 (inclusive)
|
||||
if (monoVersion?.Major != 4) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (monoVersion >= new Version(4, 4)) && (monoVersion <= new Version(4, 5, 2));
|
||||
switch (monoVersion.Minor) {
|
||||
case 3:
|
||||
return monoVersion.Build >= 2;
|
||||
case 4:
|
||||
case 5:
|
||||
return monoVersion.Build <= 2;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private static Version GetMonoVersion() {
|
||||
|
||||
Reference in New Issue
Block a user