MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / set_additional_sources

Method set_additional_sources

utility/import_info.cpp:935–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933}
934
935void ImportInfov2::set_additional_sources(const Vector<String> &p_add_sources) {
936 // TODO: md5s
937 for (int64_t i = 1; i < p_add_sources.size(); i++) {
938 if (v2metadata->get_source_count() >= i) {
939 v2metadata->remove_source(i);
940 }
941 v2metadata->add_source_at(p_add_sources[i], "", i);
942 }
943 dirty = true;
944}
945
946Variant ImportInfov2::get_param(const String &p_key) const {
947 return v2metadata->get_option(p_key);

Callers

nothing calls this directly

Calls 4

get_source_countMethod · 0.80
remove_sourceMethod · 0.80
add_source_atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected