Explorar o código

Fix issue causing `Export all` to fail.

Fredia Huya-Kouadio %!s(int64=4) %!d(string=hai) anos
pai
achega
3de720c11d
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      platform/android/export/export.cpp

+ 4 - 0
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);