You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #100920 from Summersay415/uid-moment
Ensure icon and splash paths on export
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
#include "core/extension/gdextension.h"
|
#include "core/extension/gdextension.h"
|
||||||
#include "core/io/file_access_encrypted.h"
|
#include "core/io/file_access_encrypted.h"
|
||||||
#include "core/io/file_access_pack.h" // PACK_HEADER_MAGIC, PACK_FORMAT_VERSION
|
#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/io/zip_io.h"
|
||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
#include "editor/editor_file_system.h"
|
#include "editor/editor_file_system.h"
|
||||||
@@ -955,8 +956,8 @@ Vector<String> EditorExportPlatform::get_forced_export_files() {
|
|||||||
|
|
||||||
files.push_back(ProjectSettings::get_singleton()->get_global_class_list_path());
|
files.push_back(ProjectSettings::get_singleton()->get_global_class_list_path());
|
||||||
|
|
||||||
String icon = GLOBAL_GET("application/config/icon");
|
String icon = ResourceUID::ensure_path(GLOBAL_GET("application/config/icon"));
|
||||||
String splash = GLOBAL_GET("application/boot_splash/image");
|
String splash = ResourceUID::ensure_path(GLOBAL_GET("application/boot_splash/image"));
|
||||||
if (!icon.is_empty() && FileAccess::exists(icon)) {
|
if (!icon.is_empty() && FileAccess::exists(icon)) {
|
||||||
files.push_back(icon);
|
files.push_back(icon);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user