mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-13 01:22:41 +01:00
DroidFish: Updated ChessEngineResolver from upstream repository.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user