diff options
| author | George Marques <george@gmarqu.es> | 2018-01-01 13:59:13 -0200 |
|---|---|---|
| committer | George Marques <george@gmarqu.es> | 2018-01-01 13:59:14 -0200 |
| commit | 2a023a425dd73ee476aa78fc6a544ea3bfbc010b (patch) | |
| tree | 64cdf68eeaf3816f60923addf43d23f5e30d167c /modules/gdnative/gdnative.cpp | |
| parent | abf416f922cb47b32ddc391eb58f1a8572579665 (diff) | |
| download | redot-engine-2a023a425dd73ee476aa78fc6a544ea3bfbc010b.tar.gz | |
Make GDNative DLLs work on UWP
Diffstat (limited to 'modules/gdnative/gdnative.cpp')
| -rw-r--r-- | modules/gdnative/gdnative.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative.cpp b/modules/gdnative/gdnative.cpp index 9c0041cbe0..51dbba7d28 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 |
