diff options
author | George L. Albany <Megacake1234@gmail.com> | 2024-11-21 05:02:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-21 05:02:23 +0000 |
commit | c5b1645e60a59c0292c04bece3fdb0715a61afea (patch) | |
tree | b03c5b5de96e29ffb7e1b008912d21aba5629bc5 /platform/android/export/export_plugin.cpp | |
parent | fd9045fe09e9bea691f0169c16d45cbebddb6bba (diff) | |
parent | 9857e4762b8d076259c4be863ba9f53df306d940 (diff) | |
download | redot-engine-c5b1645e60a59c0292c04bece3fdb0715a61afea.tar.gz |
Merge pull request #875 from Spartan322/merge/9e60984
Merge commit godotengine/godot@9e60984
Diffstat (limited to 'platform/android/export/export_plugin.cpp')
-rw-r--r-- | platform/android/export/export_plugin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp index 3424df2969..9bbe299f7d 100644 --- a/platform/android/export/export_plugin.cpp +++ b/platform/android/export/export_plugin.cpp @@ -792,9 +792,10 @@ Error EditorExportPlatformAndroid::save_apk_so(void *p_userdata, const SharedObj Error EditorExportPlatformAndroid::save_apk_file(void *p_userdata, const String &p_path, const Vector<uint8_t> &p_data, int p_file, int p_total, const Vector<String> &p_enc_in_filters, const Vector<String> &p_enc_ex_filters, const Vector<uint8_t> &p_key, uint64_t p_seed) { APKExportData *ed = static_cast<APKExportData *>(p_userdata); - String dst_path = p_path.replace_first("res://", "assets/"); + const String path = ResourceUID::ensure_path(p_path); + const String dst_path = path.replace_first("res://", "assets/"); - store_in_apk(ed, dst_path, p_data, _should_compress_asset(p_path, p_data) ? Z_DEFLATED : 0); + store_in_apk(ed, dst_path, p_data, _should_compress_asset(path, p_data) ? Z_DEFLATED : 0); return OK; } |