diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-11-17 21:48:24 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-11-19 20:54:26 +0100 |
commit | 6e3f2f44af808e9f4255c2462e16beee844c0df7 (patch) | |
tree | bf2fa3600bbd29cd54c40fdc3fee85ce45903e96 /platform/android | |
parent | 32c12a92a5633678921ee9e43f72eb3b59a635ed (diff) |
Use new XDG folders to dehardcode paths
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/export/export.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index 7821944ac1..8f8acb2dd8 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -1066,7 +1066,7 @@ public: if (use_reverse) p_debug_flags |= DEBUG_FLAG_REMOTE_DEBUG_LOCALHOST; - String export_to = EditorSettings::get_singleton()->get_settings_dir() + "/tmp/tmpexport.apk"; + String export_to = EditorSettings::get_singleton()->get_cache_dir().plus_file("tmpexport.apk"); Error err = export_project(p_preset, true, export_to, p_debug_flags); if (err) { device_lock->unlock(); @@ -1291,7 +1291,7 @@ public: zlib_filefunc_def io2 = io; FileAccess *dst_f = NULL; io2.opaque = &dst_f; - String unaligned_path = EditorSettings::get_singleton()->get_settings_dir() + "/tmp/tmpexport-unaligned.apk"; + String unaligned_path = EditorSettings::get_singleton()->get_cache_dir().plus_file("tmpexport-unaligned.apk"); zipFile unaligned_apk = zipOpen2(unaligned_path.utf8().get_data(), APPEND_STATUS_CREATE, NULL, &io2); bool export_x86 = p_preset->get("architecture/x86"); |