Bind replay recording score to judgement changes

This commit is contained in:
Dean Herbert 2020-12-14 17:33:33 +09:00
parent 64a2526678
commit ae22f75406

View File

@ -165,6 +165,8 @@ namespace osu.Game.Screens.Play
protected virtual void PrepareReplay()
{
DrawableRuleset.SetRecordTarget(recordingScore = new Score { Replay = new Replay() });
ScoreProcessor.NewJudgement += result => ScoreProcessor.PopulateScore(recordingScore.ScoreInfo);
}
[BackgroundDependencyLoader(true)]