mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 19:34:08 +01:00
DroidFish: Removed obsolete code.
This commit is contained in:
parent
473b4ad55c
commit
a1047dccea
|
@ -2154,14 +2154,11 @@ public class DroidFish extends Activity implements GUIInterface {
|
|||
}
|
||||
});
|
||||
final int numFiles = fileNames.length;
|
||||
boolean haveSf = EngineUtil.internalStockFishName() != null;
|
||||
final int nEngines = numFiles + 1 + (haveSf ? 1 : 0);
|
||||
final int nEngines = numFiles + 2;
|
||||
final String[] items = new String[nEngines];
|
||||
final String[] ids = new String[nEngines];
|
||||
int idx = 0;
|
||||
if (haveSf) {
|
||||
ids[idx] = "stockfish"; items[idx] = getString(R.string.stockfish_engine); idx++;
|
||||
}
|
||||
ids[idx] = "stockfish"; items[idx] = getString(R.string.stockfish_engine); idx++;
|
||||
ids[idx] = "cuckoochess"; items[idx] = getString(R.string.cuckoochess_engine); idx++;
|
||||
String sep = File.separator;
|
||||
String base = Environment.getExternalStorageDirectory() + sep + engineDir + sep;
|
||||
|
|
|
@ -33,14 +33,9 @@ public class EngineUtil {
|
|||
/** Return number of physical processors, i.e. hyper-threading ignored. */
|
||||
final static native int getNPhysicalProcessors();
|
||||
|
||||
private static final class CpuAbi {
|
||||
static final String get() { return Build.CPU_ABI; }
|
||||
}
|
||||
|
||||
/** Return file name of the internal stockfish executable,
|
||||
* or null if the internal stockfish engine is not supported. */
|
||||
/** Return file name of the internal stockfish executable. */
|
||||
public static String internalStockFishName() {
|
||||
String abi = CpuAbi.get();
|
||||
String abi = Build.CPU_ABI;
|
||||
if (!abi.equals("x86") &&
|
||||
!abi.equals("armeabi-v7a") &&
|
||||
!abi.equals("mips"))
|
||||
|
|
Loading…
Reference in New Issue
Block a user