Merge pull request #10531 from RandomShaper/remove-old-android-setting

Sanitize Android debug
This commit is contained in:
Rémi Verschelde 2017-08-29 00:09:27 +02:00 committed by GitHub
commit a91d12ab94
4 changed files with 15 additions and 11 deletions

View file

@ -1002,7 +1002,9 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_step(JNIEnv *env, job
ProjectSettings::get_singleton()->add_singleton(ProjectSettings::Singleton("JavaClassWrapper", java_class_wrapper));
_initialize_java_modules();
Main::setup2();
// Since Godot is initialized on the UI thread, _main_thread_id was set to that thread's id,
// but for Godot purposes, the main thread is the one running the game loop
Main::setup2(Thread::get_caller_id());
++step;
suspend_mutex->unlock();
input_mutex->unlock();