Make legacy catalog cache read-only

This commit is contained in:
Meta Vens 2026-06-13 06:38:33 +01:00
commit 1872b2ec0b
3 changed files with 33 additions and 4 deletions

View file

@ -18,7 +18,7 @@ public static class LegacyCatalogBoundary
{
if (_catalogCache != null) return _catalogCache;
_catalogCache = new CultCache();
_catalogCache = new CultCache(readOnly: true);
_catalogCache.AddBackingStore(new SingleFileMessagePackBackingStore(GetLegacyCatalogPath(gameDataDirectory)));
_catalogCache.AddBackingStore(new MultiFileMessagePackBackingStore(gameDataDirectory.FullName), typeof(NameFile));
_catalogCache.PullAllBackingStores();