[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
No known key found for this signature in database
GPG key ID: C360860E645EFFC0
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.no_api_hash = ClassDB::get_api_hash(ClassDB::API_NONE);
options.gd_native_library = (godot_object *)(get_library().ptr());
options.active_library_path = (godot_string *)&path;
library_init_fpointer(&options);

View file

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