| 1207 | } |
| 1208 | |
| 1209 | StringName GDRESettings::get_cached_script_class(const String &p_path) { |
| 1210 | if (!is_pack_loaded() || p_path.is_empty()) { |
| 1211 | return ""; |
| 1212 | } |
| 1213 | String path = p_path; |
| 1214 | if (!script_cache.has(path)) { |
| 1215 | path = get_mapped_path(p_path); |
| 1216 | } |
| 1217 | if (script_cache.has(path)) { |
| 1218 | auto &dict = script_cache.get(path); |
| 1219 | if (dict.has("class")) { |
| 1220 | return dict["class"]; |
| 1221 | } |
| 1222 | } |
| 1223 | return ""; |
| 1224 | } |
| 1225 | |
| 1226 | StringName GDRESettings::get_cached_script_base(const String &p_path) { |
| 1227 | if (!is_pack_loaded() || p_path.is_empty()) { |
no test coverage detected