feat: removed uninitialize_gdextension_types
parent
6725458795
commit
c06ddf6d1a
|
@ -14,11 +14,11 @@ void initialize_gdextension_types(ModuleInitializationLevel p_level)
|
||||||
//ClassDB::register_class<YourClass>();
|
//ClassDB::register_class<YourClass>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void uninitialize_gdextension_types(ModuleInitializationLevel p_level) {
|
// void uninitialize_gdextension_types(ModuleInitializationLevel p_level) {
|
||||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
// if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
@ -27,7 +27,7 @@ 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.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();
|
||||||
|
|
Loading…
Reference in New Issue