mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 11:31:33 +01:00
CuckooChess: Java applets are not allowed to use System.getProperty().
This commit is contained in:
parent
3bbfa49b01
commit
93d521c75e
|
@ -31,11 +31,15 @@ public class ComputerPlayer implements Player {
|
|||
|
||||
static {
|
||||
String name = "CuckooChess 1.13a9";
|
||||
String m = System.getProperty("sun.arch.data.model");
|
||||
if ("32".equals(m))
|
||||
name += " 32-bit";
|
||||
else if ("64".equals(m))
|
||||
name += " 64-bit";
|
||||
try {
|
||||
String m = System.getProperty("sun.arch.data.model");
|
||||
if ("32".equals(m))
|
||||
name += " 32-bit";
|
||||
else if ("64".equals(m))
|
||||
name += " 64-bit";
|
||||
} catch (SecurityException ex) {
|
||||
// getProperty not allowed in applets
|
||||
}
|
||||
engineName = name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user