| 1207 | } |
| 1208 | |
| 1209 | void ProjectExportDialog::_patch_file_selected(const String &p_path) { |
| 1210 | Ref<EditorExportPreset> current = get_current_preset(); |
| 1211 | ERR_FAIL_COND(current.is_null()); |
| 1212 | |
| 1213 | String relative_path = ProjectSettings::get_singleton()->get_resource_path().path_to_file(p_path); |
| 1214 | |
| 1215 | Vector<String> preset_patches = current->get_patches(); |
| 1216 | if (patch_index >= preset_patches.size()) { |
| 1217 | current->add_patch(relative_path); |
| 1218 | } else { |
| 1219 | current->set_patch(patch_index, relative_path); |
| 1220 | } |
| 1221 | |
| 1222 | _update_current_preset(); |
| 1223 | } |
| 1224 | |
| 1225 | void ProjectExportDialog::_patch_delete_confirmed() { |
| 1226 | Ref<EditorExportPreset> current = get_current_preset(); |
nothing calls this directly
no test coverage detected