| 633 | } |
| 634 | |
| 635 | EditorExportPlatform::ExportNotifier::ExportNotifier(EditorExportPlatform &p_platform, const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, BitField<EditorExportPlatform::DebugFlags> p_flags) { |
| 636 | HashSet<String> features = p_platform.get_features(p_preset, p_debug); |
| 637 | Vector<Ref<EditorExportPlugin>> export_plugins = EditorExport::get_singleton()->get_export_plugins(); |
| 638 | //initial export plugin callback |
| 639 | for (int i = 0; i < export_plugins.size(); i++) { |
| 640 | export_plugins.write[i]->set_export_preset(p_preset); |
| 641 | if (GDVIRTUAL_IS_OVERRIDDEN_PTR(export_plugins[i], _export_begin)) { |
| 642 | PackedStringArray features_psa; |
| 643 | for (const String &feature : features) { |
| 644 | features_psa.push_back(feature); |
| 645 | } |
| 646 | export_plugins.write[i]->_export_begin_script(features_psa, p_debug, p_path, p_flags); |
| 647 | } else { |
| 648 | export_plugins.write[i]->_export_begin(features, p_debug, p_path, p_flags); |
| 649 | } |
| 650 | } |
| 651 | } |
| 652 | |
| 653 | EditorExportPlatform::ExportNotifier::~ExportNotifier() { |
| 654 | Vector<Ref<EditorExportPlugin>> export_plugins = EditorExport::get_singleton()->get_export_plugins(); |
nothing calls this directly
no test coverage detected