Rename legacy runtime cache

This commit is contained in:
Meta Vens 2026-06-13 07:11:16 +01:00
commit 742bb69d43
6 changed files with 28 additions and 27 deletions

View file

@ -2,7 +2,7 @@ using System.IO;
public static class LegacyCatalogBoundary
{
private static CultCache _catalogCache;
private static LegacyCatalogCache _catalogCache;
public static string GetStateFilePath(DirectoryInfo gameDataDirectory)
{
@ -14,11 +14,11 @@ public static class LegacyCatalogBoundary
return Path.Combine(gameDataDirectory.FullName, "AetherDB.msgpack");
}
public static CultCache GetCatalogCache(DirectoryInfo gameDataDirectory)
public static LegacyCatalogCache GetCatalogCache(DirectoryInfo gameDataDirectory)
{
if (_catalogCache != null) return _catalogCache;
_catalogCache = new CultCache();
_catalogCache = new LegacyCatalogCache();
_catalogCache.AddBackingStore(new SingleFileMessagePackBackingStore(GetLegacyCatalogPath(gameDataDirectory)));
_catalogCache.AddBackingStore(new MultiFileMessagePackBackingStore(gameDataDirectory.FullName), typeof(NameFile));
_catalogCache.PullAllBackingStores();