mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-02-06 20:29:10 +01:00
DroidFish: Updated ChessEngineResolver from upstream repository.
This commit is contained in:
parent
289d89b70f
commit
0ab4aae1b1
|
@ -41,6 +41,13 @@ public class ChessEngineResolver {
|
|||
super();
|
||||
this.context = context;
|
||||
this.target = Build.CPU_ABI;
|
||||
sanitizeArmV6Target();
|
||||
}
|
||||
|
||||
private void sanitizeArmV6Target() {
|
||||
if (this.target.startsWith("armeabi-v6")) {
|
||||
this.target = "armeabi";
|
||||
}
|
||||
}
|
||||
|
||||
public List<ChessEngine> resolveEngines() {
|
||||
|
@ -128,5 +135,6 @@ public class ChessEngineResolver {
|
|||
*/
|
||||
public void setTarget(String target) {
|
||||
this.target = target;
|
||||
sanitizeArmV6Target();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user