Skip to content

Commit 650e96b

Browse files
committed
Merge pull request godotengine#99353 from syntaxerror247/some_uid_issues
Fix Android boot splash and gradle build issue
2 parents 3a4feed + 7289274 commit 650e96b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

platform/android/export/export_plugin.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,9 +790,10 @@ Error EditorExportPlatformAndroid::save_apk_so(void *p_userdata, const SharedObj
790790

791791
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) {
792792
APKExportData *ed = static_cast<APKExportData *>(p_userdata);
793-
String dst_path = p_path.replace_first("res://", "assets/");
793+
const String path = ResourceUID::ensure_path(p_path);
794+
const String dst_path = path.replace_first("res://", "assets/");
794795

795-
store_in_apk(ed, dst_path, p_data, _should_compress_asset(p_path, p_data) ? Z_DEFLATED : 0);
796+
store_in_apk(ed, dst_path, p_data, _should_compress_asset(path, p_data) ? Z_DEFLATED : 0);
796797
return OK;
797798
}
798799

platform/android/export/gradle_export_util.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,9 @@ Error store_string_at_path(const String &p_path, const String &p_data) {
171171
// This method will be called ONLY when gradle build is enabled.
172172
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) {
173173
CustomExportData *export_data = static_cast<CustomExportData *>(p_userdata);
174-
String dst_path = p_path.replace_first("res://", export_data->assets_directory + "/");
175-
print_verbose("Saving project files from " + p_path + " into " + dst_path);
174+
const String path = ResourceUID::ensure_path(p_path);
175+
const String dst_path = path.replace_first("res://", export_data->assets_directory + "/");
176+
print_verbose("Saving project files from " + path + " into " + dst_path);
176177
Error err = store_file_at_path(dst_path, p_data);
177178
return err;
178179
}

0 commit comments

Comments
 (0)