summaryrefslogtreecommitdiffstats
path: root/platform
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-19 15:20:23 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-19 15:20:23 -0600
commit650e96b76862e9ef4b79efd7a0801eb4596b824c (patch)
tree24a8d767c91da22265f1f64c381ada037ee5e017 /platform
parent3a4feeda898e1c6961225568696700642ad94628 (diff)
parent728927425f7cf32390d9b059cac6b51d281c8212 (diff)
downloadredot-engine-650e96b76862e9ef4b79efd7a0801eb4596b824c.tar.gz
Merge pull request #99353 from syntaxerror247/some_uid_issues
Fix Android boot splash and gradle build issue
Diffstat (limited to 'platform')
-rw-r--r--platform/android/export/export_plugin.cpp5
-rw-r--r--platform/android/export/gradle_export_util.cpp5
2 files changed, 6 insertions, 4 deletions
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp
index 0b506e60d6..e20de99c2d 100644
--- a/platform/android/export/export_plugin.cpp
+++ b/platform/android/export/export_plugin.cpp
@@ -790,9 +790,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;
}
diff --git a/platform/android/export/gradle_export_util.cpp b/platform/android/export/gradle_export_util.cpp
index 3603565805..433888581f 100644
--- a/platform/android/export/gradle_export_util.cpp
+++ b/platform/android/export/gradle_export_util.cpp
@@ -171,8 +171,9 @@ Error store_string_at_path(const String &p_path, const String &p_data) {
// This method will be called ONLY when gradle build is enabled.
Error rename_and_store_file_in_gradle_project(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) {
CustomExportData *export_data = static_cast<CustomExportData *>(p_userdata);
- String dst_path = p_path.replace_first("res://", export_data->assets_directory + "/");
- print_verbose("Saving project files from " + p_path + " into " + dst_path);
+ const String path = ResourceUID::ensure_path(p_path);
+ const String dst_path = path.replace_first("res://", export_data->assets_directory + "/");
+ print_verbose("Saving project files from " + path + " into " + dst_path);
Error err = store_file_at_path(dst_path, p_data);
return err;
}