From eb30ed3167947dc088e72b8173f79b343887fc7d Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 19 Nov 2018 15:25:54 +0200 Subject: add libjvm-misc for anything app specific --- Makefile | 5 +++-- src/libjvm-misc.c | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 src/libjvm-misc.c 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 +#include +#include "jvm/jni.h" + +jstring +com_blizzard_wtcg_hearthstone_DeviceSettings_GetModelNumber(JNIEnv *env, jobject object) +{ + return (*env)->NewStringUTF(env, "0"); +} + -- cgit v1.2.3-70-g09d2