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

Method get_cached_script_base

utility/gdre_settings.cpp:1226–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1224}
1225
1226StringName GDRESettings::get_cached_script_base(const String &p_path) {
1227 if (!is_pack_loaded() || p_path.is_empty()) {
1228 return "";
1229 }
1230 String path = p_path;
1231 if (!script_cache.has(path)) {
1232 path = get_mapped_path(p_path);
1233 }
1234 if (script_cache.has(p_path)) {
1235 auto &dict = script_cache[p_path];
1236 if (dict.has("base")) {
1237 return dict["base"];
1238 }
1239 }
1240 return "";
1241}
1242
1243String GDRESettings::get_path_for_script_class(const StringName &p_class) {
1244 if (!is_pack_loaded() || p_class.is_empty()) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected