1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 05:03:20 +08:00

Add back missing IRulesetStore cache

This commit is contained in:
Dean Herbert 2021-12-15 00:33:00 +09:00
parent 8d943b5709
commit 3ecd535f6e

View File

@ -222,6 +222,7 @@ namespace osu.Game
var defaultBeatmap = new DummyWorkingBeatmap(Audio, Textures);
dependencies.Cache(RulesetStore = new RulesetStore(realmFactory, Storage));
dependencies.CacheAs<IRulesetStore>(RulesetStore);
// ordering is important here to ensure foreign keys rules are not broken in ModelStore.Cleanup()
dependencies.Cache(ScoreManager = new ScoreManager(RulesetStore, () => BeatmapManager, Storage, realmFactory, Scheduler, Host, () => difficultyCache, LocalConfig));