From 43e3ce8c9d740dcb0a12e4aa22598311ef1b0f0a Mon Sep 17 00:00:00 2001 From: pelya Date: Thu, 4 Nov 2010 10:34:11 +0200 Subject: [PATCH] Updated readme --- readme.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 34c757625..2c76ccd10 100644 --- a/readme.txt +++ b/readme.txt @@ -92,7 +92,7 @@ SDL_BlitSurface(sprite, sourceRect, SDL_GetVideoSurface(), &targetRect); // Supported, but VERY slow (use in cases where you need to take a screenshot) SDL_BlitSurface(SDL_GetVideoSurface(), sourceRect, sprite, &targetRect); -To compile your own app, put your app sources into project/jni/application dir (or create symlink to them), +To compile your own app, put your app sources into project/jni/application dir (or create symlink to them), and change symlink "src" to point to your app: cp -r /path/to/my/app project/jni/application/myapp @@ -103,6 +103,8 @@ then ln -s myapp project/jni/application/src (the second one should be relative link without slashes) +Also your main() function name should be redefined to SDL_main(), if you'll include SDL.h it will do it automatically. + Then launch script ChangeAppSettings.sh - it will ask few questions and modify some Java code. You may take AndroidAppSettings.cfg file from some other application to get some sane defaults, you may launch ChangeAppSettings.sh with -a or -v parameter to skip questions altogether or to ask only version code.