/*
* Check ~/.fonts.cache-<version> file
*/
- if (cache && FcGlobalCacheReadDir (set, dirs, cache, dir, config))
+ if (cache && FcGlobalCacheReadDir (set, dirs, cache, (char *)dir, config))
+ return FcTrue;
+
+ if (FcDirCacheValid (dir) && FcDirCacheRead (set, dirs, dir))
return FcTrue;
}
* add the cache entry
*/
if (ret && cache)
- FcGlobalCacheUpdate (cache, dir, tmpSet);
+ FcGlobalCacheUpdate (cache, (char *)dir, tmpSet);
for (i = 0; i < tmpSet->nfont; i++)
FcFontSetAdd (set, tmpSet->fonts[i]);
}
FcBool
-FcDirSave (FcFontSet *set, const FcChar8 *dir)
+FcDirSave (FcFontSet *set, FcStrSet * dirs, const FcChar8 *dir)
{
- return FcDirCacheWrite (set, dir);
+ return FcDirCacheWrite (set, dirs, dir);
}