mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Refactor module initialization
* Changed to use the same stages as extensions. * Makes the initialization more coherent, helping solve problems due to lack of stages. * Makes it easier to port between module and extension. * removed the DRIVER initialization level (no longer needed).
This commit is contained in:
@@ -30,6 +30,14 @@
|
||||
|
||||
#include "register_types.h"
|
||||
|
||||
void register_freetype_types() {}
|
||||
void initialize_freetype_module(ModuleInitializationLevel p_level) {
|
||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void unregister_freetype_types() {}
|
||||
void uninitialize_freetype_module(ModuleInitializationLevel p_level) {
|
||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,9 @@
|
||||
#ifndef FREETYPE_REGISTER_TYPES_H
|
||||
#define FREETYPE_REGISTER_TYPES_H
|
||||
|
||||
void register_freetype_types();
|
||||
void unregister_freetype_types();
|
||||
#include "modules/register_module_types.h"
|
||||
|
||||
void initialize_freetype_module(ModuleInitializationLevel p_level);
|
||||
void uninitialize_freetype_module(ModuleInitializationLevel p_level);
|
||||
|
||||
#endif // FREETYPE_REGISTER_TYPES_H
|
||||
|
||||
Reference in New Issue
Block a user