You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Disable menus and functionality that are not relevant on the Android Editor port
This commit is contained in:
@@ -1693,21 +1693,24 @@ bool EditorExportPlatformPC::has_valid_project_configuration(const Ref<EditorExp
|
||||
}
|
||||
|
||||
bool EditorExportPlatform::can_export(const Ref<EditorExportPreset> &p_preset, String &r_error, bool &r_missing_templates) const {
|
||||
bool valid = true;
|
||||
#ifndef ANDROID_ENABLED
|
||||
String templates_error;
|
||||
bool valid_export_configuration = has_valid_export_configuration(p_preset, templates_error, r_missing_templates);
|
||||
|
||||
String project_configuration_error;
|
||||
bool valid_project_configuration = has_valid_project_configuration(p_preset, project_configuration_error);
|
||||
valid = valid && has_valid_export_configuration(p_preset, templates_error, r_missing_templates);
|
||||
|
||||
if (!templates_error.empty()) {
|
||||
r_error += templates_error;
|
||||
}
|
||||
#endif
|
||||
|
||||
String project_configuration_error;
|
||||
valid = valid && has_valid_project_configuration(p_preset, project_configuration_error);
|
||||
|
||||
if (!project_configuration_error.empty()) {
|
||||
r_error += project_configuration_error;
|
||||
}
|
||||
|
||||
return valid_export_configuration && valid_project_configuration;
|
||||
return valid;
|
||||
}
|
||||
|
||||
List<String> EditorExportPlatformPC::get_binary_extensions(const Ref<EditorExportPreset> &p_preset) const {
|
||||
|
||||
Reference in New Issue
Block a user