diff options
-rw-r--r-- | andre-apk.sh | 3 | ||||
-rw-r--r-- | src/loader.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/andre-apk.sh b/andre-apk.sh index 5a22206..1a8b557 100644 --- a/andre-apk.sh +++ b/andre-apk.sh @@ -27,8 +27,7 @@ tmpdir="$(mktemp -d)" trap 'rm -rf "$tmpdir"' EXIT unzip "$1" -d "$tmpdir" -export ANDROID_PACKAGE_FILE="$pkgfile" -export ANDROID_PACKAGE_CODE_PATH="$tmpdir" +export ANDROID_PACKAGE_CODE_PATH="$pkgfile" export ANDROID_PACKAGE_NAME="$pkgname" # TODO: when we have first release, make this follow XDG spec diff --git a/src/loader.c b/src/loader.c index 7eaf54d..bbfbdd2 100644 --- a/src/loader.c +++ b/src/loader.c @@ -126,7 +126,7 @@ run_jni_game(struct jvm *jvm) const jobject context = jvm->native.AllocObject(&jvm->env, jvm->native.FindClass(&jvm->env, "android/app/Activity")); unity.native_init_jni.fun(&jvm->env, context, context); - unity.native_file.fun(&jvm->env, context, jvm->env->NewStringUTF(&jvm->env, getenv("ANDROID_PACKAGE_FILE"))); + unity.native_file.fun(&jvm->env, context, jvm->env->NewStringUTF(&jvm->env, getenv("ANDROID_PACKAGE_CODE_PATH"))); { DIR *dir; |