aboutsummaryrefslogtreecommitdiff
path: root/modules/gdnative/gdnative.cpp
diff options
context:
space:
mode:
authorGeorge Marques2018-01-01 22:47:22 -0200
committerGitHub2018-01-01 22:47:22 -0200
commitc9005ca7fd63980eaf09ebe4598521aa1083873b (patch)
treeb75eaf71364a91da3cb0dcfef537cbcbd24a51e8 /modules/gdnative/gdnative.cpp
parentb50a9114b105dafafdda8248a38653bca314a6f3 (diff)
parent2a023a425dd73ee476aa78fc6a544ea3bfbc010b (diff)
downloadgodot-c9005ca7fd63980eaf09ebe4598521aa1083873b.tar.gz
godot-c9005ca7fd63980eaf09ebe4598521aa1083873b.tar.zst
godot-c9005ca7fd63980eaf09ebe4598521aa1083873b.zip
Diffstat (limited to 'modules/gdnative/gdnative.cpp')
-rw-r--r--modules/gdnative/gdnative.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative.cpp b/modules/gdnative/gdnative.cpp
index a6337c2f6..57db9ac51 100644
--- a/modules/gdnative/gdnative.cpp
+++ b/modules/gdnative/gdnative.cpp
@@ -130,6 +130,9 @@ bool GDNative::initialize() {
// we should pass library name to dlopen(). The library name is flattened
// during export.
String path = lib_path.get_file();
+#elif defined(UWP_ENABLED)
+ // On UWP we use a relative path from the app
+ String path = lib_path.replace("res://", "");
#else
String path = ProjectSettings::get_singleton()->globalize_path(lib_path);
#endif