summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-09-04 20:57:22 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-09-04 21:00:41 +0300
commit1e080418ec18eb028ad2c4d297f064f08f4eb547 (patch)
treefcb719bce78c90e9ae6ddc8fdb23328695369fdb
parentac9d8a241c1f5eda33718b8dd1ccdd2094a1825f (diff)
add some more apks
-rw-r--r--src/app.c8
-rw-r--r--src/libjvm-android.c12
-rw-r--r--src/libjvm-java.c16
3 files changed, 36 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 8d8af4a..0fd73de 100644
--- a/src/app.c
+++ b/src/app.c
@@ -59,6 +59,14 @@ main(int argc, const char *argv[])
native_init_jni(&jvm.env, context, context);
#if WOLF
native_file(&jvm.env, context, jvm.env->NewStringUTF(&jvm.env, "/mnt/media/dev/android2gnulinux/apks/wolf.apk"));
+#elif STARLIGHT
+ native_file(&jvm.env, context, jvm.env->NewStringUTF(&jvm.env, "/mnt/media/dev/android2gnulinux/apks/starlight.apk"));
+#elif SHADOWVERSE
+ native_file(&jvm.env, context, jvm.env->NewStringUTF(&jvm.env, "/mnt/media/dev/android2gnulinux/apks/shadowverse.apk"));
+#elif HEARTHSTONE
+ native_file(&jvm.env, context, jvm.env->NewStringUTF(&jvm.env, "/mnt/media/dev/android2gnulinux/apks/hearthstone.apk"));
+ native_file(&jvm.env, context, jvm.env->NewStringUTF(&jvm.env, "/mnt/media/dev/android2gnulinux/local/obb/com.blizzard.wtcg.hearthstone/patch.1561502.com.blizzard.wtcg.hearthstone.obb"));
+ native_file(&jvm.env, context, jvm.env->NewStringUTF(&jvm.env, "/mnt/media/dev/android2gnulinux/local/obb/com.blizzard.wtcg.hearthstone/main.1561502.com.blizzard.wtcg.hearthstone.obb"));
#else
native_file(&jvm.env, context, jvm.env->NewStringUTF(&jvm.env, "/mnt/media/dev/android2gnulinux/apks/honkai.apk"));
native_file(&jvm.env, context, jvm.env->NewStringUTF(&jvm.env, "/mnt/media/dev/android2gnulinux/local/obb/com.miHoYo.bh3oversea/main.100.com.miHoYo.bh3oversea.obb"));
diff --git a/src/libjvm-android.c b/src/libjvm-android.c
index b2079df..9827fd5 100644
--- a/src/libjvm-android.c
+++ b/src/libjvm-android.c
@@ -56,6 +56,12 @@ android_content_Context_getPackageName(JNIEnv *env, jobject object, va_list args
assert(env && object);
#if WOLF
return (*env)->NewStringUTF(env, "com.swiftappskom.thewolfrpg");
+#elif STARLIGHT
+ return (*env)->NewStringUTF(env, "jp.co.bandainamcoent.BNEI0242");
+#elif SHADOWVERSE
+ return (*env)->NewStringUTF(env, "com.cygames.Shadowverse");
+#elif HEARTHSTONE
+ return (*env)->NewStringUTF(env, "com.blizzard.wtcg.hearthstone");
#else
return (*env)->NewStringUTF(env, "com.miHoYo.bh3oversea");
#endif
@@ -67,6 +73,12 @@ android_content_Context_getPackageCodePath(JNIEnv *env, jobject object, va_list
assert(env && object);
#if WOLF
return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/apks/wolf");
+#elif STARLIGHT
+ return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/apks/starlight");
+#elif SHADOWVERSE
+ return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/apks/shadowverse");
+#elif HEARTHSTONE
+ return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/apks/hearthstone");
#else
return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/apks/honkai");
#endif
diff --git a/src/libjvm-java.c b/src/libjvm-java.c
index 3a5a47c..35f1146 100644
--- a/src/libjvm-java.c
+++ b/src/libjvm-java.c
@@ -66,6 +66,12 @@ java_io_File_getPath(JNIEnv *env, jobject object, va_list args)
// FIXME: see comment on `android_content_Context_getExternalFilesDir`
#if WOLF
return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/local/data/com.swiftappskom.thewolfrpg/files");
+#elif STARLIGHT
+ return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/local/data/jp.co.bandainamcoent.BNEI0242/files");
+#elif SHADOWVERSE
+ return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/local/data/com.cygames.Shadowverse/files");
+#elif HEARTHSTONE
+ return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/local/data/com.blizzard.wtcg.hearthstone/files");
#else
return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/local/data/com.miHoYo.bh3oversea/files");
#endif
@@ -74,7 +80,17 @@ java_io_File_getPath(JNIEnv *env, jobject object, va_list args)
jstring
java_io_File_getParent(JNIEnv *env, jobject object, va_list args)
{
+#if WOLF
+ return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/local/data/com.swiftappskom.thewolfrpg");
+#elif STARLIGHT
+ return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/local/data/jp.co.bandainamcoent.BNEI0242");
+#elif SHADOWVERSE
+ return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/local/data/com.cygames.Shadowverse");
+#elif HEARTHSTONE
+ return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/local/data/com.blizzard.wtcg.hearthstone");
+#else
return (*env)->NewStringUTF(env, "/mnt/media/dev/android2gnulinux/local/data/com.miHoYo.bh3oversea");
+#endif
}
jboolean