# HG changeset patch # User Xeli # Date 1313943191 -7200 # Node ID df23b477609dcd07601073c2fc064ece61b4b926 # Parent ea796c83ea47ad48703443bea5c4eaeaca28e35e few comments added diff -r ea796c83ea47 -r df23b477609d project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/SDLActivity.java --- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/SDLActivity.java Sun Aug 21 16:25:18 2011 +0200 +++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/SDLActivity.java Sun Aug 21 18:13:11 2011 +0200 @@ -26,7 +26,6 @@ import android.os.Message; import android.util.Log; import android.view.KeyEvent; -import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; @@ -274,13 +273,14 @@ } public void run() { - // Runs SDL_main() - + //Set up the IPC socket server to communicate with the engine EngineProtocolNetwork ipc = new EngineProtocolNetwork(config); - String path = Utils.getDownloadPath(SDLActivity.mSingleton); - //path = path.substring(0, path.length()-1);//remove the trailing '/' + String path = Utils.getDownloadPath(SDLActivity.mSingleton);//This represents the data directory + path = path.substring(0, path.length()-1);//remove the trailing '/' + + // Runs SDL_main() with added parameters SDLActivity.nativeInit(new String[] { String.valueOf(ipc.port), String.valueOf(surfaceWidth), String.valueOf(surfaceHeight), "0", "null", "xeli", "1", "1", "1", "0", "", path });