diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-16 10:38:02 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-16 10:38:02 +0100 |
commit | 429f22ddcc36c79953467ddd4871d8abcce514fc (patch) | |
tree | 35bd46e7993728976e2dcf47dcdae2fd2ff1f2fd /platform/android/export/export_plugin.cpp | |
parent | 5b19796a2ba95640e14e9c8e3451091ee7a9c761 (diff) | |
parent | 770c3b509b00b6ffc74fa390932182f243d2b179 (diff) | |
download | redot-engine-429f22ddcc36c79953467ddd4871d8abcce514fc.tar.gz |
Merge pull request #87208 from brno32/android-export-error-icon
Add clearer error message for missing project icon during Android export
Diffstat (limited to 'platform/android/export/export_plugin.cpp')
-rw-r--r-- | platform/android/export/export_plugin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp index 762e5a8323..2cc1f41b3e 100644 --- a/platform/android/export/export_plugin.cpp +++ b/platform/android/export/export_plugin.cpp @@ -1605,7 +1605,11 @@ void EditorExportPlatformAndroid::load_icon_refs(const Ref<EditorExportPreset> & print_verbose("Loading regular icon from " + path); if (path.is_empty() || ImageLoader::load_image(path, icon) != OK) { print_verbose("- falling back to project icon: " + project_icon_path); - ImageLoader::load_image(project_icon_path, icon); + if (!project_icon_path.is_empty()) { + ImageLoader::load_image(project_icon_path, icon); + } else { + ERR_PRINT("No project icon specified. Please specify one in the Project Settings under Application -> Config -> Icon"); + } } // Adaptive foreground: user selection -> regular icon (user selection -> project icon -> default). |