DroidFish: Updated ChessEngineResolver from upstream repository.

This commit is contained in:
Peter Osterlund
2014-10-13 17:45:49 +00:00
parent 289d89b70f
commit 0ab4aae1b1

View File

@@ -41,6 +41,13 @@ public class ChessEngineResolver {
super(); super();
this.context = context; this.context = context;
this.target = Build.CPU_ABI; this.target = Build.CPU_ABI;
sanitizeArmV6Target();
}
private void sanitizeArmV6Target() {
if (this.target.startsWith("armeabi-v6")) {
this.target = "armeabi";
}
} }
public List<ChessEngine> resolveEngines() { public List<ChessEngine> resolveEngines() {
@@ -128,5 +135,6 @@ public class ChessEngineResolver {
*/ */
public void setTarget(String target) { public void setTarget(String target) {
this.target = target; this.target = target;
sanitizeArmV6Target();
} }
} }