mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-12 00:52:40 +01:00
DroidFish: Made the internal stockfish engine work also on arm v6 architectures.
This commit is contained in:
@@ -38,6 +38,9 @@ public class EngineUtil {
|
||||
final int sdkVersion = Integer.parseInt(Build.VERSION.SDK);
|
||||
if (sdkVersion < 4)
|
||||
return "stockfish15.mygz";
|
||||
return "stockfish-" + CpuAbi.get();
|
||||
String abi = CpuAbi.get();
|
||||
if (!abi.equals("x86") && !abi.equals("armeabi-v7a"))
|
||||
abi = "armeabi"; // Unknown ABI, assume original ARM
|
||||
return "stockfish-" + abi;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user