mirror of https://github.com/ppy/osu
Get mods from score info
This commit is contained in:
parent
5853a877c2
commit
6a86f62d17
|
@ -285,7 +285,7 @@ public void PresentScore(ScoreInfo score)
|
|||
Ruleset.Value = databasedScoreInfo.Ruleset;
|
||||
Beatmap.Value = BeatmapManager.GetWorkingBeatmap(databasedBeatmap);
|
||||
|
||||
menuScreen.Push(new ReplayPlayerLoader(databasedScore, databasedScoreInfo.Mods));
|
||||
menuScreen.Push(new ReplayPlayerLoader(databasedScore));
|
||||
}, $"watch {databasedScoreInfo}", bypassScreenAllowChecks: true);
|
||||
}
|
||||
|
||||
|
|
|
@ -13,10 +13,10 @@ public class ReplayPlayerLoader : PlayerLoader
|
|||
{
|
||||
private readonly Bindable<IReadOnlyList<Mod>> mods;
|
||||
|
||||
public ReplayPlayerLoader(Score score, IReadOnlyList<Mod> mods)
|
||||
public ReplayPlayerLoader(Score score)
|
||||
: base(() => new ReplayPlayer(score))
|
||||
{
|
||||
this.mods = new Bindable<IReadOnlyList<Mod>>(mods);
|
||||
mods = new Bindable<IReadOnlyList<Mod>>(score.ScoreInfo.Mods);
|
||||
}
|
||||
|
||||
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
||||
|
|
Loading…
Reference in New Issue