mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 04:46:57 +03:00
GH-853 evict asset index files from cache when they don't parse
This commit is contained in:
parent
eae544f0eb
commit
3b6574181e
3 changed files with 22 additions and 0 deletions
|
|
@ -118,6 +118,9 @@ void OneSixUpdate::assetIndexFinished()
|
|||
QString asset_fname = "assets/indexes/" + assetName + ".json";
|
||||
if (!AssetsUtils::loadAssetsIndexJson(asset_fname, &index))
|
||||
{
|
||||
auto metacache = MMC->metacache();
|
||||
auto entry = metacache->resolveEntry("asset_indexes", assetName + ".json");
|
||||
metacache->evictEntry(entry);
|
||||
emitFailed(tr("Failed to read the assets index!"));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue