1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Changed the dynamic library open function to allow setting the path of the library to open extra libraries.

This commit is contained in:
Juan Linietsky
2017-11-30 10:00:10 -03:00
parent 831502eddd
commit 9678231b10
6 changed files with 21 additions and 8 deletions

View File

@@ -391,7 +391,7 @@ String OS_Unix::get_locale() const {
return locale;
}
Error OS_Unix::open_dynamic_library(const String p_path, void *&p_library_handle) {
Error OS_Unix::open_dynamic_library(const String p_path, void *&p_library_handle,bool p_also_set_library_path) {
p_library_handle = dlopen(p_path.utf8().get_data(), RTLD_NOW);
if (!p_library_handle) {
ERR_EXPLAIN("Can't open dynamic library: " + p_path + ". Error: " + dlerror());