MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _patch_file_selected

Method _patch_file_selected

editor/export/project_export.cpp:1209–1223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1207}
1208
1209void 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
1225void ProjectExportDialog::_patch_delete_confirmed() {
1226 Ref<EditorExportPreset> current = get_current_preset();

Callers

nothing calls this directly

Calls 7

path_to_fileMethod · 0.80
get_resource_pathMethod · 0.80
get_patchesMethod · 0.80
add_patchMethod · 0.80
set_patchMethod · 0.80
sizeMethod · 0.65
is_nullMethod · 0.45

Tested by

no test coverage detected