From 1c1640d73c794b8ad83047b2801d5829cf063859 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Mon, 30 Jan 2012 18:52:27 +0000 Subject: [PATCH] DroidFish: Ignore leading and trailing whitespace in the TB path. --- DroidFish/src/org/petero/droidfish/DroidFish.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DroidFish/src/org/petero/droidfish/DroidFish.java b/DroidFish/src/org/petero/droidfish/DroidFish.java index 10c5841..7bcb7f9 100644 --- a/DroidFish/src/org/petero/droidfish/DroidFish.java +++ b/DroidFish/src/org/petero/droidfish/DroidFish.java @@ -139,6 +139,8 @@ public class DroidFish extends Activity implements GUIInterface { // FIXME!!! Use high-res buttons from Scid on the go. // 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 static DroidChessController ctrl = null; private boolean mShowThinking; @@ -628,6 +630,7 @@ public class DroidFish extends Activity implements GUIInterface { egtbOptions.rootProbe = settings.getBoolean("tbRootProbe", true); egtbOptions.engineProbe = settings.getBoolean("tbEngineProbe", true); String gtbPath = settings.getString("gtbPath", ""); + gtbPath = gtbPath.trim(); if (gtbPath.length() == 0) { File extDir = Environment.getExternalStorageDirectory(); String sep = File.separator;