mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-19 12:12:17 +01:00
DroidFish: Removed unnecessary parameter.
This commit is contained in:
@@ -77,7 +77,7 @@ public class ExternalEngine extends UCIEngineBase {
|
|||||||
synchronized (EngineUtil.nativeLock) {
|
synchronized (EngineUtil.nativeLock) {
|
||||||
engineProc = pb.start();
|
engineProc = pb.start();
|
||||||
}
|
}
|
||||||
reNice(engineProc);
|
reNice();
|
||||||
|
|
||||||
startupThread = new Thread(new Runnable() {
|
startupThread = new Thread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
@@ -170,7 +170,7 @@ public class ExternalEngine extends UCIEngineBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Try to change the engine process priority to 5. */
|
/** Try to change the engine process priority to 5. */
|
||||||
private void reNice(Process proc) {
|
private void reNice() {
|
||||||
try {
|
try {
|
||||||
java.lang.reflect.Field f = engineProc.getClass().getDeclaredField("pid");
|
java.lang.reflect.Field f = engineProc.getClass().getDeclaredField("pid");
|
||||||
f.setAccessible(true);
|
f.setAccessible(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user