Exclude 32bit from supported systems

This commit is contained in:
DaCoolX
2021-11-08 19:53:56 +01:00
parent 1bf0f82e1f
commit 4caba3440a
3 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ public class Mac extends OS {
@Override public boolean isSupported() { @Override public boolean isSupported() {
String[] ver = operatingSystem.getVersionInfo().getVersion().split("\\."); String[] ver = operatingSystem.getVersionInfo().getVersion().split("\\.");
int majorVer = Integer.parseInt(ver[0]), minorVer = Integer.parseInt(ver[1]); int majorVer = Integer.parseInt(ver[0]), minorVer = Integer.parseInt(ver[1]);
return (majorVer == 10 && minorVer >= 13) || majorVer >= 11; return super.isSupported() && ((majorVer == 10 && minorVer >= 13) || majorVer >= 11);
} }
@Override public String getCUDALib() { @Override public String getCUDALib() {

View File

@@ -39,7 +39,7 @@ public abstract class OS {
public abstract String name(); public abstract String name();
public boolean isSupported() { return true; } public boolean isSupported() { return "64bit".equals(getCPU().arch()); }
/** Get the full version of the os. /** Get the full version of the os.
* For example windows, should give "windows 8.1" * For example windows, should give "windows 8.1"

View File

@@ -76,7 +76,7 @@ public class Windows extends OS {
@Override public boolean isSupported() { @Override public boolean isSupported() {
String ver = operatingSystem.getVersionInfo().getVersion(); String ver = operatingSystem.getVersionInfo().getVersion();
return ver.equals("8.1") || ver.equals("10") || ver.equals("11"); return super.isSupported() && (ver.equals("8.1") || ver.equals("10") || ver.equals("11"));
} }
int getPriorityClass(int priority) { int getPriorityClass(int priority) {