1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:42:56 +08:00

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() protected virtual void PrepareReplay()
{ {
DrawableRuleset.SetRecordTarget(recordingScore = new Score { Replay = new Replay() }); DrawableRuleset.SetRecordTarget(recordingScore = new Score { Replay = new Replay() });
ScoreProcessor.NewJudgement += result => ScoreProcessor.PopulateScore(recordingScore.ScoreInfo);
} }
[BackgroundDependencyLoader(true)] [BackgroundDependencyLoader(true)]