Removed absolute path to libhwengine.so, the library must be preloaded from Java now. Which automagically knows where libhwengine.so is! hedgeroid
authorXeli
Tue, 28 Jun 2011 17:54:27 +0200
branchhedgeroid
changeset 5369 0ce1ef75c08f
parent 5367 c7b8da094474
child 5371 bb809cd50781
Removed absolute path to libhwengine.so, the library must be preloaded from Java now. Which automagically knows where libhwengine.so is!
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	Tue Jun 28 17:51:58 2011 +0200
+++ b/project_files/Android-build/SDL-android-project/jni/src/hedgewars_main.c	Tue Jun 28 17:54:27 2011 +0200
@@ -15,7 +15,7 @@
 	
 
         __android_log_print(ANDROID_LOG_INFO, TAG, "HWEngine being loaded");
-	handle = dlopen("/data/data/org.hedgewars/lib/libhwengine.so", RTLD_NOW|RTLD_GLOBAL);
+	handle = dlopen("libhwengine.so", RTLD_NOW|RTLD_GLOBAL);
 	if(!handle){
 		__android_log_print(ANDROID_LOG_INFO, "foo", dlerror());
 		__android_log_print(ANDROID_LOG_INFO, "foo", "error dlopen");