File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 129129 </description >
130130 </method >
131131 <method name =" get_script_export_mode" qualifiers =" const" >
132- <return type =" int" />
132+ <return type =" int" enum = " EditorExportPreset.ScriptExportMode " />
133133 <description >
134134 Returns script export mode.
135135 </description >
Original file line number Diff line number Diff line change @@ -510,12 +510,12 @@ String EditorExportPreset::get_script_encryption_key() const {
510510 return script_key;
511511}
512512
513- void EditorExportPreset::set_script_export_mode (int p_mode) {
513+ void EditorExportPreset::set_script_export_mode (ScriptExportMode p_mode) {
514514 script_mode = p_mode;
515515 EditorExport::singleton->save_presets ();
516516}
517517
518- int EditorExportPreset::get_script_export_mode () const {
518+ EditorExportPreset::ScriptExportMode EditorExportPreset::get_script_export_mode () const {
519519 return script_mode;
520520}
521521
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class EditorExportPreset : public RefCounted {
9494 uint64_t seed = 0 ;
9595
9696 String script_key;
97- int script_mode = MODE_SCRIPT_BINARY_TOKENS_COMPRESSED;
97+ ScriptExportMode script_mode = MODE_SCRIPT_BINARY_TOKENS_COMPRESSED;
9898
9999protected:
100100 bool _set (const StringName &p_name, const Variant &p_value);
@@ -179,8 +179,8 @@ class EditorExportPreset : public RefCounted {
179179 void set_script_encryption_key (const String &p_key);
180180 String get_script_encryption_key () const ;
181181
182- void set_script_export_mode (int p_mode);
183- int get_script_export_mode () const ;
182+ void set_script_export_mode (ScriptExportMode p_mode);
183+ ScriptExportMode get_script_export_mode () const ;
184184
185185 Variant _get_or_env (const StringName &p_name, const String &p_env_var) const {
186186 return get_or_env (p_name, p_env_var);
You can’t perform that action at this time.
0 commit comments