Repository: godotengine/godot (language: cpp)

Issue:
Icon and splash screen raw files are not included in exported project
### Tested versions

- Reproducible in 4.4.dev5
- Not reproducible in 4.4.dev4
Regression from #97912

### System information

Godot v4.4.dev7 - Arch Linux #1 SMP PREEMPT_DYNAMIC Thu, 19 Dec 2024 21:29:01 +0000 on Wayland - X11 display driver, Single-window, 1 monitor - OpenGL 3 (Compatibility) - Mesa Intel(R) Graphics (ADL GT2) - 12th Gen Intel(R) Core(TM) i5-1235U (12 threads)

### Issue description

Icon and splash screen files are not included in export project due to saved as UIDs in ProjectSettings. Instead, file at path uid:/<someUIDhere> is exported, but it is ignored by engine, so icon and splash screen doesn't work.

### Steps to reproduce

1. Set custom icon and splash screen. They will be saved in ProjectSettings as UIDs.
2. Export project.
3. Run project. Notice default splash screen and icon.

### Minimal reproduction project (MRP)

[mrp.zip](https://github.com/user-attachments/files/18272161/mrp.zip)
1. Run in editor. Everything works.
2. Export and run. Icon and splash don't work.



Discussion / hints:

Fix patch:
diff --git a/editor/export/editor_export_platform.cpp b/editor/export/editor_export_platform.cpp
index cb496fc9f09e..1cf47f348659 100644
--- a/editor/export/editor_export_platform.cpp
+++ b/editor/export/editor_export_platform.cpp
@@ -35,6 +35,7 @@
 #include "core/extension/gdextension.h"
 #include "core/io/file_access_encrypted.h"
 #include "core/io/file_access_pack.h" // PACK_HEADER_MAGIC, PACK_FORMAT_VERSION
+#include "core/io/resource_uid.h"
 #include "core/io/zip_io.h"
 #include "core/version.h"
 #include "editor/editor_file_system.h"
@@ -925,8 +926,8 @@ Vector<String> EditorExportPlatform::get_forced_export_files() {
 
 	files.push_back(ProjectSettings::get_singleton()->get_global_class_list_path());
 
-	String icon = GLOBAL_GET("application/config/icon");
-	String splash = GLOBAL_GET("application/boot_splash/image");
+	String icon = ResourceUID::ensure_path(GLOBAL_GET("application/config/icon"));
+	String splash = ResourceUID::ensure_path(GLOBAL_GET("application/boot_splash/image"));
 	if (!icon.is_empty() && FileAccess::exists(icon)) {
 		files.push_back(icon);
 	}


Test patch: