Compare commits

..

No commits in common. "8af2858e39e405ebf2b4352b68920b75c1a25fcc" and "6881f8e84a0f4aa2e32f8db4514fc7880f6fbc59" have entirely different histories.

2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,4 @@
#include "register_types.h"
#include "utils/register_types.hpp"
#include <gdextension_interface.h>
#include <godot_cpp/core/class_db.hpp>
#include <godot_cpp/core/defs.hpp>
@ -12,9 +11,14 @@ void initialize_gdextension_types(ModuleInitializationLevel p_level)
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
return;
}
godot_cpp_utils_register_types();
}
//void uninitialize_gdextension_types(ModuleInitializationLevel p_level) {
// if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
// return;
// }
//}
extern "C"
{
// Initialization
@ -22,6 +26,7 @@ extern "C"
{
GDExtensionBinding::InitObject init_obj(p_get_proc_address, p_library, r_initialization);
init_obj.register_initializer(initialize_gdextension_types);
// init_obj.register_terminator(uninitialize_gdextension_types);
init_obj.set_minimum_library_initialization_level(MODULE_INITIALIZATION_LEVEL_SCENE);
return init_obj.init();

@ -1 +1 @@
Subproject commit 54fcbcbb6bea3f086b751d80faca1700dba28a51
Subproject commit 7bdb5e70eb1138c898f4f7382d2906ad6528090f