Make some editor export methods const
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "editor/editor_node.h"
|
||||
|
||||
void EditorExportPlatformIOS::get_preset_features(const Ref<EditorExportPreset> &p_preset, List<String> *r_features) {
|
||||
void EditorExportPlatformIOS::get_preset_features(const Ref<EditorExportPreset> &p_preset, List<String> *r_features) const {
|
||||
String driver = ProjectSettings::get_singleton()->get("rendering/driver/driver_name");
|
||||
// Vulkan and OpenGL ES 3.0 both mandate ETC2 support.
|
||||
r_features->push_back("etc2");
|
||||
@@ -43,7 +43,7 @@ void EditorExportPlatformIOS::get_preset_features(const Ref<EditorExportPreset>
|
||||
}
|
||||
}
|
||||
|
||||
Vector<EditorExportPlatformIOS::ExportArchitecture> EditorExportPlatformIOS::_get_supported_architectures() {
|
||||
Vector<EditorExportPlatformIOS::ExportArchitecture> EditorExportPlatformIOS::_get_supported_architectures() const {
|
||||
Vector<ExportArchitecture> archs;
|
||||
archs.push_back(ExportArchitecture("arm64", true));
|
||||
return archs;
|
||||
@@ -1155,7 +1155,7 @@ Error EditorExportPlatformIOS::_export_additional_assets(const String &p_out_dir
|
||||
return OK;
|
||||
}
|
||||
|
||||
Vector<String> EditorExportPlatformIOS::_get_preset_architectures(const Ref<EditorExportPreset> &p_preset) {
|
||||
Vector<String> EditorExportPlatformIOS::_get_preset_architectures(const Ref<EditorExportPreset> &p_preset) const {
|
||||
Vector<ExportArchitecture> all_archs = _get_supported_architectures();
|
||||
Vector<String> enabled_archs;
|
||||
for (int i = 0; i < all_archs.size(); ++i) {
|
||||
|
||||
Reference in New Issue
Block a user