feat: removed uninitialize function completely

main
Sara 2024-05-28 14:15:57 +02:00
parent f91feba86d
commit 8af2858e39
1 changed files with 0 additions and 7 deletions

View File

@ -15,12 +15,6 @@ void initialize_gdextension_types(ModuleInitializationLevel p_level)
godot_cpp_utils_register_types(); godot_cpp_utils_register_types();
} }
//void uninitialize_gdextension_types(ModuleInitializationLevel p_level) {
// if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
// return;
// }
//}
extern "C" extern "C"
{ {
// Initialization // Initialization
@ -28,7 +22,6 @@ extern "C"
{ {
GDExtensionBinding::InitObject init_obj(p_get_proc_address, p_library, r_initialization); GDExtensionBinding::InitObject init_obj(p_get_proc_address, p_library, r_initialization);
init_obj.register_initializer(initialize_gdextension_types); 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); init_obj.set_minimum_library_initialization_level(MODULE_INITIALIZATION_LEVEL_SCENE);
return init_obj.init(); return init_obj.init();