diff options
author | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2020-05-27 12:04:31 -0700 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2020-05-27 12:07:53 -0700 |
commit | c948d25b6e7b57b0c047b6f8af8c0f2e4781f8f5 (patch) | |
tree | fe7e3035751fdb1f22d902e65ab57c4522cc74d7 /platform/android/export/export.cpp | |
parent | 52814d111c3e522cb320bd7e17c61f914d7b9a3a (diff) |
Validate that `Use Custom Build` is enabled when `Plugins` are selected
Remove `GodotPayment` from the default build template
Diffstat (limited to 'platform/android/export/export.cpp')
-rw-r--r-- | platform/android/export/export.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index 1bd198ccc0..b678bbb886 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -1823,6 +1823,15 @@ public: err += etc_error; } + // Ensure that `Use Custom Build` is enabled if a plugin is selected. + String enabled_plugins_names = get_plugins_names(get_enabled_plugins(p_preset)); + bool custom_build_enabled = p_preset->get("custom_template/use_custom_build"); + if (!enabled_plugins_names.empty() && !custom_build_enabled) { + valid = false; + err += TTR("\"Use Custom Build\" must be enabled to use the plugins."); + err += "\n"; + } + r_error = err; return valid; } |