Contain legacy catalog readbacks

This commit is contained in:
Meta Vens 2026-06-13 05:42:50 +01:00
commit edd3c0467c
2 changed files with 9 additions and 3 deletions

View file

@ -122,11 +122,15 @@ public class CultCache
} }
if(_typeStores.ContainsKey(type)) if(_typeStores.ContainsKey(type))
_typeStores[type].Push(entry); {
var typeStore = _typeStores[type];
if(typeStore != source)
typeStore.Push(entry);
}
else else
{ {
var masterStore = _backingStores.First(); var masterStore = _backingStores.FirstOrDefault();
if(masterStore!=source) if(masterStore != null && masterStore!=source)
masterStore.Push(entry); masterStore.Push(entry);
} }

View file

@ -189,6 +189,8 @@ First Aetheria surfaces to publish:
- Done: disable legacy local save, loadout, zone, player-settings, keyboard - Done: disable legacy local save, loadout, zone, player-settings, keyboard
layout, DB inspector, and NameFile export writers. layout, DB inspector, and NameFile export writers.
- Done: delete the old `SavedGame`/`SavedZone` runtime save DTO and loader. - Done: delete the old `SavedGame`/`SavedZone` runtime save DTO and loader.
- Done: stop legacy `CultCache` pull/read paths from writing entries back to
their source backing store.
- Remaining: delete or quarantine old cache abstractions that no longer - Remaining: delete or quarantine old cache abstractions that no longer
protect an invariant once catalog migration has a typed reader. protect an invariant once catalog migration has a typed reader.