feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -83,8 +83,12 @@ void EditorExport::_save() {
|
|||
config->set_value(section, "include_filter", preset->get_include_filter());
|
||||
config->set_value(section, "exclude_filter", preset->get_exclude_filter());
|
||||
config->set_value(section, "export_path", preset->get_export_path());
|
||||
config->set_value(section, "patches", preset->get_patches());
|
||||
|
||||
config->set_value(section, "encryption_include_filters", preset->get_enc_in_filter());
|
||||
config->set_value(section, "encryption_exclude_filters", preset->get_enc_ex_filter());
|
||||
config->set_value(section, "seed", preset->get_seed());
|
||||
|
||||
config->set_value(section, "encrypt_pck", preset->get_enc_pck());
|
||||
config->set_value(section, "encrypt_directory", preset->get_enc_directory());
|
||||
config->set_value(section, "script_export_mode", preset->get_script_export_mode());
|
||||
|
|
@ -124,7 +128,17 @@ void EditorExport::_bind_methods() {
|
|||
|
||||
void EditorExport::add_export_platform(const Ref<EditorExportPlatform> &p_platform) {
|
||||
export_platforms.push_back(p_platform);
|
||||
|
||||
should_update_presets = true;
|
||||
should_reload_presets = true;
|
||||
}
|
||||
|
||||
void EditorExport::remove_export_platform(const Ref<EditorExportPlatform> &p_platform) {
|
||||
export_platforms.erase(p_platform);
|
||||
p_platform->cleanup();
|
||||
|
||||
should_update_presets = true;
|
||||
should_reload_presets = true;
|
||||
}
|
||||
|
||||
int EditorExport::get_export_platform_count() {
|
||||
|
|
@ -242,9 +256,9 @@ void EditorExport::load_config() {
|
|||
}
|
||||
}
|
||||
|
||||
if (!preset.is_valid()) {
|
||||
if (preset.is_null()) {
|
||||
index++;
|
||||
ERR_CONTINUE(!preset.is_valid());
|
||||
continue; // Unknown platform, skip without error (platform might be loaded later).
|
||||
}
|
||||
|
||||
preset->set_name(config->get_value(section, "name"));
|
||||
|
|
@ -293,7 +307,11 @@ void EditorExport::load_config() {
|
|||
preset->set_exclude_filter(config->get_value(section, "exclude_filter"));
|
||||
preset->set_export_path(config->get_value(section, "export_path", ""));
|
||||
preset->set_script_export_mode(config->get_value(section, "script_export_mode", EditorExportPreset::MODE_SCRIPT_BINARY_TOKENS_COMPRESSED));
|
||||
preset->set_patches(config->get_value(section, "patches", Vector<String>()));
|
||||
|
||||
if (config->has_section_key(section, "seed")) {
|
||||
preset->set_seed(config->get_value(section, "seed"));
|
||||
}
|
||||
if (config->has_section_key(section, "encrypt_pck")) {
|
||||
preset->set_enc_pck(config->get_value(section, "encrypt_pck"));
|
||||
}
|
||||
|
|
@ -343,6 +361,12 @@ void EditorExport::load_config() {
|
|||
void EditorExport::update_export_presets() {
|
||||
HashMap<StringName, List<EditorExportPlatform::ExportOption>> platform_options;
|
||||
|
||||
if (should_reload_presets) {
|
||||
should_reload_presets = false;
|
||||
export_presets.clear();
|
||||
load_config();
|
||||
}
|
||||
|
||||
for (int i = 0; i < export_platforms.size(); i++) {
|
||||
Ref<EditorExportPlatform> platform = export_platforms[i];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue