mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-20 04:32:17 +01:00
DroidFish: Updated for new SDK/NDK versions.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user