Improvement: check if the OS and the GPU are supported by the application

This commit is contained in:
Laurent Clouet
2014-12-17 21:47:31 +00:00
parent b4d64bb754
commit ea7997c625
4 changed files with 37 additions and 1 deletions

View File

@@ -93,6 +93,16 @@ public class Client {
}
public int run() {
if (this.config.checkOSisSupported() == false) {
this.gui.error(Error.humanString(Error.Type.OS_NOT_SUPPORTED));
return -3;
}
if (this.config.checkCPUisSUpported() == false) {
this.gui.error(Error.humanString(Error.Type.CPU_NOT_SUPPORTED));
return -4;
}
int step;
try {
step = this.log.newCheckPoint();