summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuyakou@gmail.com>2020-11-13 16:17:34 -0800
committerFredia Huya-Kouadio <fhuyakou@gmail.com>2020-11-14 13:10:38 -0800
commit3de720c11dbd828be310b6732e9d8940f674cd99 (patch)
tree4639a6d89e6e885324623621cf7ae0d20ae6f5f9 /platform/android
parent3c1a1a760e9efe4c6bd995774f926b9cc849897e (diff)
Fix issue causing `Export all` to fail.
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/export/export.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp
index ed1988e99b..d1c21f86e1 100644
--- a/platform/android/export/export.cpp
+++ b/platform/android/export/export.cpp
@@ -2424,6 +2424,10 @@ public:
String export_filename = p_path.get_file();
String export_path = p_path.get_base_dir();
+ if (export_path.is_rel_path()) {
+ export_path = OS::get_singleton()->get_resource_dir().plus_file(export_path);
+ }
+ export_path = ProjectSettings::get_singleton()->globalize_path(export_path).simplify_path();
copy_args.push_back("-Pexport_path=file:" + export_path);
copy_args.push_back("-Pexport_filename=" + export_filename);