diff options
| author | Thomas Herzog | 2017-10-02 13:51:46 +0200 |
|---|---|---|
| committer | GitHub | 2017-10-02 13:51:46 +0200 |
| commit | cf17b081f1699cd714d2a1dc02b61cd6f002bce7 (patch) | |
| tree | 5397af4a7dc9f70b499fbd72492664ebd0f73ad7 /modules/gdnative/gdnative.cpp | |
| parent | 11ab7b6efc3353ac19aed6f88c5a38bfbe879ebd (diff) | |
| parent | c55b8217ab9f4bce35a8053cf2e548469b821bca (diff) | |
| download | godot-cf17b081f1699cd714d2a1dc02b61cd6f002bce7.tar.gz godot-cf17b081f1699cd714d2a1dc02b61cd6f002bce7.tar.zst godot-cf17b081f1699cd714d2a1dc02b61cd6f002bce7.zip | |
Merge pull request #11778 from touilleMan/gdnative-add-library-path-to-init-options
[GDnative] add library path to init options
Diffstat (limited to '')
| -rw-r--r-- | modules/gdnative/gdnative.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative.cpp b/modules/gdnative/gdnative.cpp index 11856e4ff..f0c09a337 100644 --- a/modules/gdnative/gdnative.cpp +++ b/modules/gdnative/gdnative.cpp @@ -110,6 +110,7 @@ GDNativeLibrary::~GDNativeLibrary() { void GDNativeLibrary::_bind_methods() { ClassDB::bind_method(D_METHOD("set_library_path", "platform", "path"), &GDNativeLibrary::set_library_path); ClassDB::bind_method(D_METHOD("get_library_path", "platform"), &GDNativeLibrary::get_library_path); + ClassDB::bind_method(D_METHOD("get_active_library_path"), &GDNativeLibrary::get_active_library_path); ClassDB::bind_method(D_METHOD("is_singleton_gdnative"), &GDNativeLibrary::is_singleton_gdnative); ClassDB::bind_method(D_METHOD("set_singleton_gdnative", "singleton"), &GDNativeLibrary::set_singleton_gdnative); @@ -268,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); |
