mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-03-24 22:25:17 +01:00
DroidFish: Updated for new SDK/NDK versions.
This commit is contained in:
parent
d349d41e26
commit
00013ebaa9
DroidFish
@ -3,6 +3,7 @@
|
|||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="gen"/>
|
<classpathentry kind="src" path="gen"/>
|
||||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||||
<classpathentry combineaccessrules="false" kind="src" path="/CuckooChessEngine"/>
|
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/CuckooChessEngine"/>
|
||||||
|
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||||
<classpathentry kind="output" path="bin/classes"/>
|
<classpathentry kind="output" path="bin/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
@ -11,8 +11,7 @@
|
|||||||
<uses-sdk android:minSdkVersion="3"
|
<uses-sdk android:minSdkVersion="3"
|
||||||
android:targetSdkVersion="10"/>
|
android:targetSdkVersion="10"/>
|
||||||
<application android:icon="@drawable/icon"
|
<application android:icon="@drawable/icon"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name">
|
||||||
android:debuggable="false">
|
|
||||||
<activity android:name=".DroidFish"
|
<activity android:name=".DroidFish"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:configChanges="orientation|keyboardHidden">
|
android:configChanges="orientation|keyboardHidden">
|
||||||
|
@ -142,6 +142,7 @@ public class DroidFish extends Activity implements GUIInterface {
|
|||||||
|
|
||||||
// FIXME!!! Better behavior if engine is terminated. How exactly?
|
// FIXME!!! Better behavior if engine is terminated. How exactly?
|
||||||
// FIXME!!! Handle PGN intents with more than one game.
|
// FIXME!!! Handle PGN intents with more than one game.
|
||||||
|
// FIXME!!! File load/save of FEN data
|
||||||
// FIXME!!! Make engine hash size configurable.
|
// FIXME!!! Make engine hash size configurable.
|
||||||
|
|
||||||
private ChessBoard cb;
|
private ChessBoard cb;
|
||||||
|
@ -84,6 +84,8 @@ final class InternalBook implements IOpeningBook {
|
|||||||
numBookMoves = 0;
|
numBookMoves = 0;
|
||||||
try {
|
try {
|
||||||
InputStream inStream = getClass().getResourceAsStream("/book.bin");
|
InputStream inStream = getClass().getResourceAsStream("/book.bin");
|
||||||
|
if (inStream == null)
|
||||||
|
throw new IOException();
|
||||||
List<Byte> buf = new ArrayList<Byte>(8192);
|
List<Byte> buf = new ArrayList<Byte>(8192);
|
||||||
byte[] tmpBuf = new byte[1024];
|
byte[] tmpBuf = new byte[1024];
|
||||||
while (true) {
|
while (true) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user