mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-02-17 09:37:50 +01:00
DroidFish: Ignore leading and trailing whitespace in the TB path.
This commit is contained in:
parent
0039df9eaa
commit
1c1640d73c
|
@ -139,6 +139,8 @@ public class DroidFish extends Activity implements GUIInterface {
|
||||||
// FIXME!!! Use high-res buttons from Scid on the go.
|
// FIXME!!! Use high-res buttons from Scid on the go.
|
||||||
// FIXME!!! Auto-swap sides is not good in combination with analysis mode.
|
// FIXME!!! Auto-swap sides is not good in combination with analysis mode.
|
||||||
|
|
||||||
|
// FIXME!!! Better behavior if engine is terminated. How exactly?
|
||||||
|
|
||||||
private ChessBoard cb;
|
private ChessBoard cb;
|
||||||
private static DroidChessController ctrl = null;
|
private static DroidChessController ctrl = null;
|
||||||
private boolean mShowThinking;
|
private boolean mShowThinking;
|
||||||
|
@ -628,6 +630,7 @@ public class DroidFish extends Activity implements GUIInterface {
|
||||||
egtbOptions.rootProbe = settings.getBoolean("tbRootProbe", true);
|
egtbOptions.rootProbe = settings.getBoolean("tbRootProbe", true);
|
||||||
egtbOptions.engineProbe = settings.getBoolean("tbEngineProbe", true);
|
egtbOptions.engineProbe = settings.getBoolean("tbEngineProbe", true);
|
||||||
String gtbPath = settings.getString("gtbPath", "");
|
String gtbPath = settings.getString("gtbPath", "");
|
||||||
|
gtbPath = gtbPath.trim();
|
||||||
if (gtbPath.length() == 0) {
|
if (gtbPath.length() == 0) {
|
||||||
File extDir = Environment.getExternalStorageDirectory();
|
File extDir = Environment.getExternalStorageDirectory();
|
||||||
String sep = File.separator;
|
String sep = File.separator;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user