create base dependencies before caching, create player in playerloader

This commit is contained in:
David Zhao
2019-07-08 15:40:10 +09:00
parent 2747d7692b
commit 5853a877c2
2 changed files with 12 additions and 11 deletions

View File

@ -285,7 +285,7 @@ namespace osu.Game
Ruleset.Value = databasedScoreInfo.Ruleset;
Beatmap.Value = BeatmapManager.GetWorkingBeatmap(databasedBeatmap);
menuScreen.Push(new ReplayPlayerLoader(() => new ReplayPlayer(databasedScore), databasedScoreInfo.Mods));
menuScreen.Push(new ReplayPlayerLoader(databasedScore, databasedScoreInfo.Mods));
}, $"watch {databasedScoreInfo}", bypassScreenAllowChecks: true);
}