You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Move singleton management from ProjectSettings to Engine
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include <EGL/egl.h>
|
||||
#include <GLES2/gl2.h>
|
||||
|
||||
#include "engine.h"
|
||||
#include "file_access_android.h"
|
||||
#include "main/main.h"
|
||||
#include "os_android.h"
|
||||
@@ -842,7 +843,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_Godot_registerSingleton(JNIEnv
|
||||
s->set_instance(env->NewGlobalRef(p_object));
|
||||
jni_singletons[singname] = s;
|
||||
|
||||
ProjectSettings::get_singleton()->add_singleton(ProjectSettings::Singleton(singname, s));
|
||||
Engine::get_singleton()->add_singleton(Engine::Singleton(singname, s));
|
||||
}
|
||||
|
||||
static Variant::Type get_jni_type(const String &p_type) {
|
||||
|
||||
Reference in New Issue
Block a user