Skip to content

Commit

Permalink
Merge pull request godotengine#100920 from Summersay415/uid-moment
Browse files Browse the repository at this point in the history
Ensure icon and splash paths on export
  • Loading branch information
Repiteo committed Jan 22, 2025
2 parents 28c4ae2 + 0edd24d commit 1022c6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions editor/export/editor_export_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -955,8 +956,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);
}
Expand Down

0 comments on commit 1022c6b

Please sign in to comment.