Fix Hedgeroid argc/argv parameter passing to the engine
authorMedo <smaxein@googlemail.com>
Thu, 31 Jan 2013 02:14:56 +0100
changeset 8465 9114b50fed82
parent 8463 0f39265a1604
child 8469 018da0724a93
Fix Hedgeroid argc/argv parameter passing to the engine
project_files/Android-build/SDL-android-project/jni/src/hedgewars_main.c
--- a/project_files/Android-build/SDL-android-project/jni/src/hedgewars_main.c	Thu Jan 31 02:14:04 2013 +0100
+++ b/project_files/Android-build/SDL-android-project/jni/src/hedgewars_main.c	Thu Jan 31 02:14:56 2013 +0100
@@ -1,3 +1,4 @@
+#include<stdint.h>
 
 #include "android/log.h"
 #include "SDL.h"
@@ -6,7 +7,7 @@
 
 #define TAG "HWEngine Loader"
 
-typedef  (*HWEngine_Game)(char**);
+typedef  (*HWEngine_Game)(int32_t argc, char** argv);
 
 main(int argc, char *argv[]){
 	void *handle;
@@ -33,7 +34,7 @@
 		exit(EXIT_FAILURE);
 	}
 	__android_log_print(ANDROID_LOG_INFO, TAG, "dlsym succeeded");
-	Game(argv);
+	Game(argc, argv);
 	__android_log_print(ANDROID_LOG_INFO, TAG, "Game() ended");
 
 	dlclose(handle);