From c06ddf6d1a36d3e260880e443aa9fc2f291b5530 Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 30 Jan 2024 15:35:45 +0100 Subject: [PATCH] feat: removed uninitialize_gdextension_types --- src/register_types.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/register_types.cpp b/src/register_types.cpp index eb240c2..dc261b9 100644 --- a/src/register_types.cpp +++ b/src/register_types.cpp @@ -14,11 +14,11 @@ void initialize_gdextension_types(ModuleInitializationLevel p_level) //ClassDB::register_class(); } -void uninitialize_gdextension_types(ModuleInitializationLevel p_level) { - if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) { - return; - } -} +// void uninitialize_gdextension_types(ModuleInitializationLevel p_level) { + // if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) { + // return; + // } +// } extern "C" { @@ -27,7 +27,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.register_terminator(uninitialize_gdextension_types); init_obj.set_minimum_library_initialization_level(MODULE_INITIALIZATION_LEVEL_SCENE); return init_obj.init();