diff options
| author | reduz <reduzio@gmail.com> | 2021-06-19 12:58:49 -0300 |
|---|---|---|
| committer | reduz <reduzio@gmail.com> | 2021-06-25 17:32:45 -0300 |
| commit | b1d15c51bc1ded928b266ffc06459dd8b2046eb4 (patch) | |
| tree | 176b9bb1217200cafec3613df6cf8369dcd73dd4 /editor/editor_node.cpp | |
| parent | c8444c3ee078e33c33287cf879aa5daecb962a80 (diff) | |
| download | redot-engine-b1d15c51bc1ded928b266ffc06459dd8b2046eb4.tar.gz | |
Implement native extension system
* Deprecates GDNative in favor of a simpler, lower level interface.
* New extension system allows registering core engine classes.
* Simple header interface in gdnative_interace.h
Diffstat (limited to 'editor/editor_node.cpp')
| -rw-r--r-- | editor/editor_node.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index f8c2f2910b..b962ea6e3e 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -32,6 +32,7 @@ #include "core/config/project_settings.h" #include "core/core_bind.h" +#include "core/extension/native_extension_manager.h" #include "core/input/input.h" #include "core/io/config_file.h" #include "core/io/file_access.h" @@ -3771,9 +3772,12 @@ void EditorNode::register_editor_types() { ClassDB::register_class<EditorScenePostImport>(); //ClassDB::register_type<EditorImportExport>(); ClassDB::register_class<EditorDebuggerPlugin>(); + + NativeExtensionManager::get_singleton()->initialize_extensions(NativeExtension::INITIALIZATION_LEVEL_EDITOR); } void EditorNode::unregister_editor_types() { + NativeExtensionManager::get_singleton()->deinitialize_extensions(NativeExtension::INITIALIZATION_LEVEL_EDITOR); _init_callbacks.clear(); if (EditorPaths::get_singleton()) { EditorPaths::free(); |
