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

Method get_import_info_by_source

utility/gdre_settings.cpp:2343–2353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2341}
2342
2343Ref<ImportInfo> GDRESettings::get_import_info_by_source(const String &p_path) {
2344 Ref<ImportInfo> iinfo;
2345 for (int i = 0; i < import_files.size(); i++) {
2346 iinfo = import_files[i];
2347 if (iinfo->get_source_file() == p_path) {
2348 return iinfo;
2349 }
2350 }
2351 // not found
2352 return Ref<ImportInfo>();
2353}
2354
2355Ref<ImportInfo> GDRESettings::get_import_info_by_dest(const String &p_path) const {
2356 Ref<ImportInfo> iinfo;

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
get_source_fileMethod · 0.45

Tested by

no test coverage detected