mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Split out BeatmapOnlineLookupQueue
from BeatmapManager
This commit is contained in:
@ -138,6 +138,8 @@ namespace osu.Game
|
||||
|
||||
private UserLookupCache userCache;
|
||||
|
||||
private BeatmapOnlineLookupQueue onlineBeatmapLookupCache;
|
||||
|
||||
private FileStore fileStore;
|
||||
|
||||
private RulesetConfigCache rulesetConfigCache;
|
||||
@ -242,7 +244,11 @@ namespace osu.Game
|
||||
|
||||
// ordering is important here to ensure foreign keys rules are not broken in ModelStore.Cleanup()
|
||||
dependencies.Cache(ScoreManager = new ScoreManager(RulesetStore, () => BeatmapManager, Storage, API, contextFactory, Scheduler, Host, () => difficultyCache, LocalConfig));
|
||||
dependencies.Cache(BeatmapManager = new BeatmapManager(Storage, contextFactory, RulesetStore, API, Audio, Resources, Host, defaultBeatmap, true));
|
||||
dependencies.Cache(BeatmapManager = new BeatmapManager(Storage, contextFactory, RulesetStore, API, Audio, Resources, Host, defaultBeatmap));
|
||||
|
||||
onlineBeatmapLookupCache = new BeatmapOnlineLookupQueue(API, Storage);
|
||||
|
||||
BeatmapManager.PopulateOnlineInformation = onlineBeatmapLookupCache.UpdateAsync;
|
||||
|
||||
// this should likely be moved to ArchiveModelManager when another case appears where it is necessary
|
||||
// to have inter-dependent model managers. this could be obtained with an IHasForeign<T> interface to
|
||||
@ -524,7 +530,6 @@ namespace osu.Game
|
||||
base.Dispose(isDisposing);
|
||||
|
||||
RulesetStore?.Dispose();
|
||||
BeatmapManager?.Dispose();
|
||||
LocalConfig?.Dispose();
|
||||
|
||||
contextFactory?.FlushConnections();
|
||||
|
Reference in New Issue
Block a user