Add back optional online lookups

This commit is contained in:
Dean Herbert
2021-09-30 17:14:35 +09:00
parent 90225f2082
commit 7a72747d88
2 changed files with 6 additions and 4 deletions

View File

@ -42,9 +42,11 @@ namespace osu.Game.Beatmaps
workingBeatmapCache.BeatmapManager = beatmapModelManager;
var onlineBeatmapLookupCache = new BeatmapOnlineLookupQueue(api, storage);
beatmapModelManager.PopulateOnlineInformation = onlineBeatmapLookupCache.UpdateAsync;
if (performOnlineLookups)
{
var onlineBeatmapLookupCache = new BeatmapOnlineLookupQueue(api, storage);
beatmapModelManager.PopulateOnlineInformation = onlineBeatmapLookupCache.UpdateAsync;
}
}
protected virtual WorkingBeatmapCache CreateWorkingBeatmapCache(AudioManager audioManager, IResourceStore<byte[]> resources, IResourceStore<byte[]> storage, WorkingBeatmap defaultBeatmap, GameHost host) =>