summaryrefslogtreecommitdiff
path: root/editor/editor_export.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_export.h')
-rw-r--r--editor/editor_export.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/editor/editor_export.h b/editor/editor_export.h
index 64381fbb35..dc4b198575 100644
--- a/editor/editor_export.h
+++ b/editor/editor_export.h
@@ -70,6 +70,8 @@ private:
String name;
+ String custom_features;
+
protected:
bool _set(const StringName &p_name, const Variant &p_value);
bool _get(const StringName &p_name, Variant &r_ret) const;
@@ -107,6 +109,9 @@ public:
void remove_patch(int p_idx);
Vector<String> get_patches() const;
+ void set_custom_features(const String &p_custom_features);
+ String get_custom_features() const;
+
const List<PropertyInfo> &get_properties() const { return properties; }
EditorExportPreset();
@@ -153,12 +158,13 @@ private:
static Error _save_zip_file(void *p_userdata, const String &p_path, const Vector<uint8_t> &p_data, int p_file, int p_total);
protected:
- virtual void get_preset_features(const Ref<EditorExportPreset> &p_preset, List<String> *r_features) = 0;
bool exists_export_template(String template_file_name, String *err) const;
String find_export_template(String template_file_name, String *err = NULL) const;
void gen_export_flags(Vector<String> &r_flags, int p_flags);
public:
+ virtual void get_preset_features(const Ref<EditorExportPreset> &p_preset, List<String> *r_features) = 0;
+
struct ExportOption {
PropertyInfo option;
Variant default_value;
@@ -175,6 +181,7 @@ public:
virtual void get_export_options(List<ExportOption> *r_options) = 0;
virtual bool get_option_visibility(const String &p_option, const Map<StringName, Variant> &p_options) const { return true; }
+ virtual String get_os_name() const = 0;
virtual String get_name() const = 0;
virtual Ref<Texture> get_logo() const = 0;
@@ -203,6 +210,7 @@ public:
virtual String get_binary_extension() const = 0;
virtual Error export_project(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, int p_flags = 0) = 0;
+ virtual void get_platform_features(List<String> *r_features) = 0;
EditorExportPlatform();
};
@@ -253,6 +261,7 @@ class EditorExportPlatformPC : public EditorExportPlatform {
Ref<ImageTexture> logo;
String name;
+ String os_name;
String extension;
String release_file_32;
@@ -260,6 +269,8 @@ class EditorExportPlatformPC : public EditorExportPlatform {
String debug_file_32;
String debug_file_64;
+ Set<String> extra_features;
+
bool use64;
public:
@@ -268,6 +279,7 @@ public:
virtual void get_export_options(List<ExportOption> *r_options);
virtual String get_name() const;
+ virtual String get_os_name() const;
virtual Ref<Texture> get_logo() const;
virtual bool can_export(const Ref<EditorExportPreset> &p_preset, String &r_error, bool &r_missing_templates) const;
@@ -276,6 +288,7 @@ public:
void set_extension(const String &p_extension);
void set_name(const String &p_name);
+ void set_os_name(const String &p_name);
void set_logo(const Ref<Texture> &p_loco);
@@ -284,6 +297,9 @@ public:
void set_debug_64(const String &p_file);
void set_debug_32(const String &p_file);
+ void add_platform_feature(const String &p_feature);
+ virtual void get_platform_features(List<String> *r_features);
+
EditorExportPlatformPC();
};