summaryrefslogtreecommitdiff
path: root/core/extension/native_extension.h
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2021-07-29 10:53:05 -0300
committerGeorge Marques <george@gmarqu.es>2021-08-05 14:57:31 -0300
commit3f362cec68222dcded0a14e9a4ccf357fa363a8e (patch)
treed7bda5a4f32845640c9b6537241e741bdfe89eb5 /core/extension/native_extension.h
parent97947bc063773be047dd5d7e9fefc933dde4828e (diff)
Improve extension system
- Fix library loading and initialization. - Add extra methods/parameters in the interface needed by extenstions. - Add Variant destructors and functions for extracting values and creating Variants from values.
Diffstat (limited to 'core/extension/native_extension.h')
-rw-r--r--core/extension/native_extension.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/extension/native_extension.h b/core/extension/native_extension.h
index 0a23848eb2..8bd95b2867 100644
--- a/core/extension/native_extension.h
+++ b/core/extension/native_extension.h
@@ -35,8 +35,8 @@
#include "core/io/resource_loader.h"
#include "core/object/ref_counted.h"
-class NativeExtension : public RefCounted {
- GDCLASS(NativeExtension, RefCounted)
+class NativeExtension : public Resource {
+ GDCLASS(NativeExtension, Resource)
void *library = nullptr; // pointer if valid,