summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2021-09-11 12:08:12 +1000
committerBastiaan Olij <mux213@gmail.com>2021-09-13 18:50:00 +1000
commitf9849a271777fe48572a542997f58ab339006854 (patch)
treece3b18a4c7c45570bb30aaa5490765b23d9d5c24 /drivers
parentbbdfc547cad77a8265592c210f01d5a7f52430ca (diff)
Add driver types to GD extension initialisation levels
Diffstat (limited to 'drivers')
-rw-r--r--drivers/register_driver_types.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/register_driver_types.cpp b/drivers/register_driver_types.cpp
index 83702ea2cc..4a163b7c10 100644
--- a/drivers/register_driver_types.cpp
+++ b/drivers/register_driver_types.cpp
@@ -30,6 +30,7 @@
#include "register_driver_types.h"
+#include "core/extension/native_extension_manager.h"
#include "drivers/png/image_loader_png.h"
#include "drivers/png/resource_saver_png.h"
@@ -54,7 +55,9 @@ void unregister_core_driver_types() {
}
void register_driver_types() {
+ NativeExtensionManager::get_singleton()->initialize_extensions(NativeExtension::INITIALIZATION_LEVEL_DRIVER);
}
void unregister_driver_types() {
+ NativeExtensionManager::get_singleton()->deinitialize_extensions(NativeExtension::INITIALIZATION_LEVEL_DRIVER);
}