mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-19 04:02:23 +01:00
DroidFish: Renamed NativePipedProcess to StockFishJNI.
This commit is contained in:
@@ -546,7 +546,7 @@ public class DroidComputerPlayer {
|
||||
if ("cuckoochess".equals(searchRequest.engine))
|
||||
uciEngine = new CuckooChessEngine();
|
||||
else
|
||||
uciEngine = new NativePipedProcess();
|
||||
uciEngine = new StockFishJNI();
|
||||
uciEngine.initialize();
|
||||
|
||||
engineMonitor = new Thread(new Runnable() {
|
||||
@@ -911,7 +911,7 @@ public class DroidComputerPlayer {
|
||||
nCPUsFromProc = nCPUs;
|
||||
} catch (IOException e) {
|
||||
}
|
||||
int nCPUsFromOS = NativePipedProcess.getNPhysicalProcessors();
|
||||
int nCPUsFromOS = StockFishJNI.getNPhysicalProcessors();
|
||||
return Math.max(nCPUsFromProc, nCPUsFromOS);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
|
||||
package org.petero.droidfish.engine;
|
||||
|
||||
public class NativePipedProcess extends UCIEngineBase {
|
||||
public class StockFishJNI extends UCIEngineBase {
|
||||
static {
|
||||
System.loadLibrary("jni");
|
||||
System.loadLibrary("stockfishjni");
|
||||
}
|
||||
|
||||
@Override
|
||||
Reference in New Issue
Block a user