Make legacy catalog cache read-only
This commit is contained in:
parent
fd6aa1d280
commit
1872b2ec0b
3 changed files with 33 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue