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

Method get_path_for_script_class

utility/gdre_settings.cpp:1243–1254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241}
1242
1243String GDRESettings::get_path_for_script_class(const StringName &p_class) {
1244 if (!is_pack_loaded() || p_class.is_empty()) {
1245 return "";
1246 }
1247 for (auto kv : script_cache) {
1248 auto &dict = kv.value;
1249 if (dict.get("class", "").operator StringName() == p_class) {
1250 return kv.key;
1251 }
1252 }
1253 return "";
1254}
1255
1256Dictionary GDRESettings::get_cached_script_entry(const String &p_path) {
1257 if (!is_pack_loaded() || p_path.is_empty() || !script_cache.has(p_path)) {

Callers 2

load_base_scriptMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected