mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 01:17:35 +09:00
Fix difficulty retrieval for online-sourced beatmaps
This commit is contained in:
parent
16f55de495
commit
6d4bb4316c
@ -202,7 +202,9 @@ namespace osu.Game.Beatmaps
|
|||||||
/// <param name="cancellationToken">A token that may be used to cancel this update.</param>
|
/// <param name="cancellationToken">A token that may be used to cancel this update.</param>
|
||||||
private void updateBindable([NotNull] BindableStarDifficulty bindable, [CanBeNull] RulesetInfo rulesetInfo, [CanBeNull] IEnumerable<Mod> mods, CancellationToken cancellationToken = default)
|
private void updateBindable([NotNull] BindableStarDifficulty bindable, [CanBeNull] RulesetInfo rulesetInfo, [CanBeNull] IEnumerable<Mod> mods, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
GetAsync(new DifficultyCacheLookup(bindable.Beatmap, rulesetInfo, mods), cancellationToken)
|
// GetDifficultyAsync will fall back to existing data from BeatmapInfo if not locally available
|
||||||
|
// (contrary to GetAsync)
|
||||||
|
GetDifficultyAsync(bindable.Beatmap, rulesetInfo, mods, cancellationToken)
|
||||||
.ContinueWith(t =>
|
.ContinueWith(t =>
|
||||||
{
|
{
|
||||||
// We're on a threadpool thread, but we should exit back to the update thread so consumers can safely handle value-changed events.
|
// We're on a threadpool thread, but we should exit back to the update thread so consumers can safely handle value-changed events.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user