summaryrefslogtreecommitdiffstats
path: root/platform
diff options
context:
space:
mode:
authorSummersay415 <summersay415@gmail.com>2024-10-28 12:41:48 +0700
committerSummersay415 <summersay415@gmail.com>2024-10-29 21:19:21 +0700
commita84292e8358c6e73cbb22dcbf7613fde564ee17b (patch)
tree97c3311772b03b4796a8b31e14cb68e8558b648e /platform
parenta3080477ac0421aef24ca0916c40559abbf4846b (diff)
downloadredot-engine-a84292e8358c6e73cbb22dcbf7613fde564ee17b.tar.gz
Add warning when monochrome icon is not specified
Diffstat (limited to 'platform')
-rw-r--r--platform/android/export/export_plugin.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp
index 41f460ca8f..698e37a123 100644
--- a/platform/android/export/export_plugin.cpp
+++ b/platform/android/export/export_plugin.cpp
@@ -1693,7 +1693,7 @@ void EditorExportPlatformAndroid::load_icon_refs(const Ref<EditorExportPreset> &
path = static_cast<String>(p_preset->get(launcher_adaptive_icon_monochrome_option)).strip_edges();
if (!path.is_empty()) {
print_verbose("Loading adaptive monochrome icon from " + path);
- ImageLoader::load_image(path, background);
+ ImageLoader::load_image(path, monochrome);
}
}
@@ -1778,6 +1778,12 @@ String EditorExportPlatformAndroid::get_export_option_warning(const EditorExport
if (!is_package_name_valid(pn, &pn_err)) {
return TTR("Invalid package name:") + " " + pn_err;
}
+ } else if (p_name == launcher_adaptive_icon_monochrome_option) {
+ String monochrome_icon_path = p_preset->get(launcher_adaptive_icon_monochrome_option);
+
+ if (monochrome_icon_path.is_empty()) {
+ return TTR("No adaptive monochrome icon specified; default Godot monochrome icon will be used.");
+ }
} else if (p_name == "gradle_build/use_gradle_build") {
bool gradle_build_enabled = p_preset->get("gradle_build/use_gradle_build");
String enabled_plugins_names = _get_plugins_names(Ref<EditorExportPreset>(p_preset));