| 313 | } |
| 314 | |
| 315 | void AssetLibrarySource::load_edit_cache() { |
| 316 | MutexLock lock(cache_mutex); |
| 317 | String edit_cache_file = PluginManager::get_plugin_cache_path().path_join("asset_lib_edits_release_cache.json"); |
| 318 | if (!FileAccess::exists(edit_cache_file)) { |
| 319 | return; |
| 320 | } |
| 321 | auto file = FileAccess::open(edit_cache_file, FileAccess::READ); |
| 322 | if (file.is_null()) { |
| 323 | return; |
| 324 | } |
| 325 | Dictionary json = JSON::parse_string(file->get_as_text()); |
| 326 | for (auto &E : json) { |
| 327 | edit_cache[E.key] = EditCache::from_json(E.value); |
| 328 | } |
| 329 | file->close(); |
| 330 | } |
| 331 | |
| 332 | void AssetLibrarySource::load_cache_internal() { |
| 333 | Error err = load_edit_list_cache(); |
nothing calls this directly
no test coverage detected