Added VICE project files to Git - it crashes at random!
This commit is contained in:
@@ -1 +1 @@
|
||||
fheroes2
|
||||
vice
|
||||
33
project/jni/application/vice/AndroidAppSettings.cfg
Normal file
33
project/jni/application/vice/AndroidAppSettings.cfg
Normal file
@@ -0,0 +1,33 @@
|
||||
# The application settings for Android libSDL port
|
||||
AppSettingVersion=15
|
||||
LibSdlVersion=1.2
|
||||
AppName="ViceC64"
|
||||
AppFullName=org.viceteam.sdl
|
||||
ScreenOrientation=h
|
||||
InhibitSuspend=n
|
||||
AppDataDownloadUrl="Data files size is 1 Mb|http://anddev.at.ua/data/vice-data.zip?attredirects=0&d=1"
|
||||
SdlVideoResize=y
|
||||
SdlVideoResizeKeepAspect=n
|
||||
NeedDepthBuffer=n
|
||||
AppUsesMouse=n
|
||||
AppNeedsTwoButtonMouse=n
|
||||
AppNeedsArrowKeys=y
|
||||
AppNeedsTextInput=y
|
||||
AppUsesJoystick=n
|
||||
AppHandlesJoystickSensitivity=n
|
||||
AppUsesMultitouch=n
|
||||
NonBlockingSwapBuffers=n
|
||||
RedefinedKeys="LALT RETURN KP_PLUS KP_MINUS LCTRL"
|
||||
AppTouchscreenKeyboardKeysAmount=3
|
||||
AppTouchscreenKeyboardKeysAmountAutoFire=0
|
||||
MultiABI=n
|
||||
AppVersionCode=12001
|
||||
AppVersionName="2.2.01"
|
||||
CompiledLibraries="jpeg png"
|
||||
CustomBuildScript=y
|
||||
AppCflags=''
|
||||
AppLdflags=''
|
||||
AppSubdirsBuild=''
|
||||
AppUseCrystaXToolchain=n
|
||||
AppCmdline='/sdcard/app-data/org.viceteam.sdl/vice -sdlcustomw 480 -sdlcustomh 320 -sdllimitmode 1 -menukey 306'
|
||||
ReadmeText='^You may press "Home" now - the data will be downloaded in background'
|
||||
17
project/jni/application/vice/AndroidBuild.sh
Executable file
17
project/jni/application/vice/AndroidBuild.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
|
||||
if [ \! -f vice/configure ] ; then
|
||||
sh -c "cd vice && ./autogen.sh"
|
||||
fi
|
||||
|
||||
if [ \! -f vice/Makefile ] ; then
|
||||
../setEnvironment.sh sh -c "cd vice && ./configure --host=arm-eabi --without-x --enable-sdlui --with-sdlsound --without-resid"
|
||||
fi
|
||||
|
||||
make -C vice && mv -f vice/src/x64 libapplication.so
|
||||
BIN
project/jni/application/vice/icon.png
Normal file
BIN
project/jni/application/vice/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.0 KiB |
2
project/jni/application/vice/readme.txt
Normal file
2
project/jni/application/vice/readme.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Download VICE from https://vice-emu.svn.sourceforge.net/svnroot/vice-emu/trunk/vice ,
|
||||
put or symlink it here under dir name "vice", and hit build.sh.
|
||||
1
project/jni/application/vice/vice
Symbolic link
1
project/jni/application/vice/vice
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../../vice
|
||||
@@ -100,7 +100,7 @@ static void ANDROID_UpdateRects(_THIS, int numrects, SDL_Rect *rects);
|
||||
|
||||
/* Private display data */
|
||||
|
||||
#define SDL_NUMMODES 9
|
||||
#define SDL_NUMMODES 10
|
||||
static SDL_Rect *SDL_modelist[SDL_NUMMODES+1];
|
||||
|
||||
//#define SDL_modelist (this->hidden->SDL_modelist)
|
||||
@@ -233,12 +233,14 @@ int ANDROID_VideoInit(_THIS, SDL_PixelFormat *vformat)
|
||||
SDL_modelist[3]->w = 640; SDL_modelist[3]->h = 400; // Will likely be shrinked
|
||||
SDL_modelist[4]->w = 320; SDL_modelist[4]->h = 240; // Always available on any screen and any orientation
|
||||
SDL_modelist[5]->w = 320; SDL_modelist[5]->h = 200; // Always available on any screen and any orientation
|
||||
SDL_modelist[6]->w = 256; SDL_modelist[6]->h = 224; // Always available on any screen and any orientation
|
||||
SDL_modelist[6]->w = 256; SDL_modelist[6]->h = 224; // For REminiscence
|
||||
SDL_modelist[7]->w = SDL_ANDROID_sWindowWidth * 2 / 3;
|
||||
SDL_modelist[7]->h = SDL_ANDROID_sWindowHeight * 2 / 3;
|
||||
SDL_modelist[8]->w = SDL_ANDROID_sWindowWidth / 2;
|
||||
SDL_modelist[8]->h = SDL_ANDROID_sWindowHeight / 2;
|
||||
SDL_modelist[9] = NULL;
|
||||
//SDL_modelist[9]->w = 533; SDL_modelist[9]->h = 320; // For VICE
|
||||
//SDL_modelist[10] = NULL;
|
||||
|
||||
SDL_VideoInit_1_3(NULL, 0);
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ extern C_LINKAGE void
|
||||
JAVA_EXPORT_NAME(DemoRenderer_nativeInit) ( JNIEnv* env, jobject thiz, jstring cmdline )
|
||||
{
|
||||
int i = 0;
|
||||
char curdir[512];
|
||||
char curdir[512], realcurdir[512];
|
||||
const jbyte *jstr;
|
||||
const char * str = "sdl";
|
||||
int argc = 0;
|
||||
@@ -47,8 +47,10 @@ JAVA_EXPORT_NAME(DemoRenderer_nativeInit) ( JNIEnv* env, jobject thiz, jstring
|
||||
strcat(curdir, SDL_CURDIR_PATH);
|
||||
strcat(curdir, "/files");
|
||||
}
|
||||
chdir(curdir);
|
||||
setenv("HOME", curdir, 1);
|
||||
if( realpath(curdir, realcurdir) == NULL )
|
||||
strcpy(realcurdir, curdir);
|
||||
chdir(realcurdir);
|
||||
setenv("HOME", realcurdir, 1);
|
||||
|
||||
jstr = (*env)->GetStringUTFChars(env, cmdline, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user