summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-11-19 15:25:54 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-11-19 15:25:54 +0200
commiteb30ed3167947dc088e72b8173f79b343887fc7d (patch)
tree803d2c1e2e2ae98b73a189d6b187563fc27c3fc7
parentf6683c532bd556111683e8a380a8304a9a8775ea (diff)
add libjvm-misc for anything app specific
-rw-r--r--Makefile5
-rw-r--r--src/libjvm-misc.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 39903f2..d953dda 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,7 @@ runtime/libjvm-java.so: private override CPPFLAGS += -D_GNU_SOURCE
runtime/libjvm-java.so: src/libjvm-java.c
runtime/libjvm-android.so: src/libjvm-android.c
runtime/libjvm-unity.so: src/libjvm-unity.c
+runtime/libjvm-misc.so: src/libjvm-misc.c
# trick linker to link against unversioned libs
libdl.so: runtime/libdl.so
@@ -69,12 +70,12 @@ libpthread.so: runtime/libpthread.so
andre: private override CPPFLAGS += -D_GNU_SOURCE
andre: private override LDFLAGS += -L. -Wl,-Y,runtime,-rpath,runtime
andre: private override LDLIBS += -ldl -lpthread
-andre: private override LDLIBS += -ljvm -ljvm-java -ljvm-android -ljvm-unity
+andre: private override LDLIBS += -ljvm -ljvm-java -ljvm-android -ljvm-unity -ljvm-misc
andre: src/loader.c libdl.so libpthread.so
andre: runtime/libpthread.so runtime/libc.so
andre: runtime/libandroid.so runtime/liblog.so
andre: runtime/libEGL.so runtime/libOpenSLES.so
-andre: runtime/libjvm.so runtime/libjvm-java.so runtime/libjvm-android.so runtime/libjvm-unity.so
+andre: runtime/libjvm.so runtime/libjvm-java.so runtime/libjvm-android.so runtime/libjvm-unity.so runtime/libjvm-misc.so
install-bin: $(bins)
install -Dm755 $^ -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
diff --git a/src/libjvm-misc.c b/src/libjvm-misc.c
new file mode 100644
index 0000000..f96add5
--- /dev/null
+++ b/src/libjvm-misc.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include "jvm/jni.h"
+
+jstring
+com_blizzard_wtcg_hearthstone_DeviceSettings_GetModelNumber(JNIEnv *env, jobject object)
+{
+ return (*env)->NewStringUTF(env, "0");
+}
+