diff options
| author | Juan Linietsky | 2014-09-02 23:13:40 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-09-02 23:13:40 -0300 |
| commit | 1a2cb755e2d8b9d59178f36702f6dff7235b9088 (patch) | |
| tree | 4a88f47c8b984522e36ac973accb34bdcb00363b /platform/android/java_glue.cpp | |
| parent | 89fa70706f9166765c3ac3f799225a467800f065 (diff) | |
| download | godot-1a2cb755e2d8b9d59178f36702f6dff7235b9088.tar.gz godot-1a2cb755e2d8b9d59178f36702f6dff7235b9088.tar.zst godot-1a2cb755e2d8b9d59178f36702f6dff7235b9088.zip | |
Diffstat (limited to 'platform/android/java_glue.cpp')
| -rw-r--r-- | platform/android/java_glue.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/android/java_glue.cpp b/platform/android/java_glue.cpp index ae8174c35..fdc6f1207 100644 --- a/platform/android/java_glue.cpp +++ b/platform/android/java_glue.cpp @@ -38,7 +38,10 @@ #include "globals.h" #include "thread_jandroid.h" #include "core/os/keyboard.h" +#include "java_class_wrapper.h" + +static JavaClassWrapper *java_class_wrapper=NULL; static OS_Android *os_android=NULL; @@ -934,6 +937,8 @@ JNIEXPORT void JNICALL Java_com_android_godot_GodotLib_step(JNIEnv * env, jobjec // ugly hack to initialize the rest of the engine // because of the way android forces you to do everything with threads + java_class_wrapper = memnew( JavaClassWrapper(_godot_instance )); + Globals::get_singleton()->add_singleton(Globals::Singleton("JavaClassWrapper",java_class_wrapper)); _initialize_java_modules(); Main::setup2(); |
