| 1224 | } |
| 1225 | |
| 1226 | StringName 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 | |
| 1243 | String GDRESettings::get_path_for_script_class(const StringName &p_class) { |
| 1244 | if (!is_pack_loaded() || p_class.is_empty()) { |
no outgoing calls
no test coverage detected