Added Kobo Deluxe (by Lubomyr), updated readme

This commit is contained in:
pelya
2011-12-09 17:42:13 +02:00
parent a4b406c424
commit 571982efcd
12 changed files with 355 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ LOCAL_SHARED_LIBRARIES := sdl-$(SDL_VERSION) $(filter-out $(APP_AVAILABLE_STATIC
LOCAL_STATIC_LIBRARIES := $(filter $(APP_AVAILABLE_STATIC_LIBS), $(COMPILED_LIBRARIES))
LOCAL_STATIC_LIBRARIES += stlport
LOCAL_STATIC_LIBRARIES += gnustl_static
LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog -lz

View File

@@ -0,0 +1,44 @@
# The application settings for Android libSDL port
AppSettingVersion=17
LibSdlVersion=1.2
AppName="KoboDeluxe"
AppFullName=net.olofson.kobodl
ScreenOrientation=h
InhibitSuspend=y
AppDataDownloadUrl="!Game data1|kobodl-data1.zip^!Game data2|kobodl-data2.zip"
VideoDepthBpp=16
NeedDepthBuffer=n
NeedStencilBuffer=n
NeedGles2=n
SwVideoMode=y
SdlVideoResize=y
SdlVideoResizeKeepAspect=n
CompatibilityHacks=n
AppUsesMouse=y
AppNeedsTwoButtonMouse=y
ShowMouseCursor=n
ForceRelativeMouseMode=n
AppNeedsArrowKeys=n
AppNeedsTextInput=n
AppUsesJoystick=n
AppHandlesJoystickSensitivity=y
AppUsesMultitouch=n
NonBlockingSwapBuffers=n
RedefinedKeys="SPACE RETURN NO_REMAP NO_REMAP SPACE ESCAPE SPACE"
AppTouchscreenKeyboardKeysAmount=2
AppTouchscreenKeyboardKeysAmountAutoFire=0
RedefinedKeysScreenKb="RETURN DOWN"
StartupMenuButtonTimeout=3000
HiddenMenuOptions='OptionalDownloadConfig MouseConfigMainMenu'
FirstStartMenuOptions=''
MultiABI=n
AppVersionCode=05101
AppVersionName="0.5.1.01"
ResetSdlConfigForThisVersion=n
CompiledLibraries="jpeg png sdl_image"
CustomBuildScript=y
AppCflags=''
AppLdflags=''
AppSubdirsBuild=''
AppCmdline=''
ReadmeText='^You may press "Home" now - the data will be downloaded in background'

View File

@@ -0,0 +1,18 @@
#!/bin/sh
LOCAL_PATH=`dirname $0`
LOCAL_PATH=`cd $LOCAL_PATH && pwd`
ln -sf libsdl-1.2.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL.so
ln -sf libsdl_image.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL_image.so
if [ \! -f KoboDeluxe-0.5.1/configure ] ; then
sh -c "cd KoboDeluxe-0.5.1 && ./autogen.sh"
fi
if [ \! -f KoboDeluxe-0.5.1/Makefile ] ; then
../setEnvironment.sh sh -c "cd KoboDeluxe-0.5.1 && env LIBS='-lsdl-1.2 -lsdl_image -lgnustl_static' ./configure --host=arm-linux-androideabi --disable-opengl --without-x"
fi
make -C KoboDeluxe-0.5.1 && mv -f KoboDeluxe-0.5.1/kobodl libapplication.so

View File

@@ -0,0 +1,2 @@
Source code
http://olofson.net/kobodl/download/KoboDeluxe-0.5.1.tar.bz2

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,34 @@
diff -ru orig/KoboDeluxe-0.5.1/config.sub KoboDeluxe-0.5.1/config.sub
--- orig/KoboDeluxe-0.5.1/config.sub 2003-05-20 21:42:02.000000000 -0400
+++ KoboDeluxe-0.5.1/config.sub 2011-11-26 13:20:37.000000000 -0500
@@ -1122,7 +1122,7 @@
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -udi* | -eabi* | -androideabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
diff -ru orig/KoboDeluxe-0.5.1/sound/a_midicon.c KoboDeluxe-0.5.1/sound/a_midicon.c
--- orig/KoboDeluxe-0.5.1/sound/a_midicon.c 2003-06-08 14:30:58.000000000 -0400
+++ KoboDeluxe-0.5.1/sound/a_midicon.c 2011-11-27 07:10:17.000000000 -0500
@@ -129,7 +129,7 @@
* Returns the new last key (-1 if none),
* or -2 if there's no change.
*/
-static inline int __release(unsigned ch, unsigned key)
+static inline int __release2(unsigned ch, unsigned key)
{
if(m[ch].prev[key] != -1)
m[ch].next[m[ch].prev[key]] = m[ch].next[key];
@@ -157,7 +157,7 @@
static void midicon_note_off(unsigned ch, unsigned pitch, unsigned vel)
{
- __release(ch, pitch);
+ __release2(ch, pitch);
(void)ce_stop(channeltab + MIDI_MAP_CH(ch), 0,
(int)pitch, (int)explut[vel]);
}

View File

@@ -1 +1 @@
openttd
kobodeluxe