1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Validate that Use Custom Build is enabled when Plugins are selected

Remove `GodotPayment` from the default build template
This commit is contained in:
Fredia Huya-Kouadio
2020-05-27 12:04:31 -07:00
parent 9aeb9ea826
commit 0181e89e43
3 changed files with 12 additions and 6 deletions

View File

@@ -1900,6 +1900,15 @@ public:
}
}
// 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;
}