DroidFish: Updated for new SDK/NDK versions.

This commit is contained in:
Peter Osterlund
2012-05-01 16:53:19 +00:00
parent d349d41e26
commit 00013ebaa9
4 changed files with 6 additions and 3 deletions

View File

@@ -142,6 +142,7 @@ public class DroidFish extends Activity implements GUIInterface {
// FIXME!!! Better behavior if engine is terminated. How exactly?
// FIXME!!! Handle PGN intents with more than one game.
// FIXME!!! File load/save of FEN data
// FIXME!!! Make engine hash size configurable.
private ChessBoard cb;

View File

@@ -84,6 +84,8 @@ final class InternalBook implements IOpeningBook {
numBookMoves = 0;
try {
InputStream inStream = getClass().getResourceAsStream("/book.bin");
if (inStream == null)
throw new IOException();
List<Byte> buf = new ArrayList<Byte>(8192);
byte[] tmpBuf = new byte[1024];
while (true) {