1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

[GDnative] Add active_library_path to init options struct

This commit is contained in:
Emmanuel Leblond
2017-10-02 13:45:47 +02:00
parent c11c951871
commit c55b8217ab
2 changed files with 2 additions and 0 deletions

View File

@@ -269,6 +269,7 @@ bool GDNative::initialize() {
options.editor_api_hash = ClassDB::get_api_hash(ClassDB::API_EDITOR); options.editor_api_hash = ClassDB::get_api_hash(ClassDB::API_EDITOR);
options.no_api_hash = ClassDB::get_api_hash(ClassDB::API_NONE); options.no_api_hash = ClassDB::get_api_hash(ClassDB::API_NONE);
options.gd_native_library = (godot_object *)(get_library().ptr()); options.gd_native_library = (godot_object *)(get_library().ptr());
options.active_library_path = (godot_string *)&path;
library_init_fpointer(&options); library_init_fpointer(&options);

View File

@@ -243,6 +243,7 @@ typedef struct {
uint64_t no_api_hash; uint64_t no_api_hash;
godot_object *gd_native_library; // pointer to GDNativeLibrary that is being initialized godot_object *gd_native_library; // pointer to GDNativeLibrary that is being initialized
const struct godot_gdnative_api_struct *api_struct; const struct godot_gdnative_api_struct *api_struct;
const godot_string *active_library_path;
} godot_gdnative_init_options; } godot_gdnative_init_options;
typedef struct { typedef struct {