| 1241 | } |
| 1242 | |
| 1243 | String 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 | |
| 1256 | Dictionary GDRESettings::get_cached_script_entry(const String &p_path) { |
| 1257 | if (!is_pack_loaded() || p_path.is_empty() || !script_cache.has(p_path)) { |
no test coverage detected