Add back CreateScoreProcessor to Ruleset to instantiate a non-generic ScoreProcessor for ScoreDatabase.

This commit is contained in:
smoogipooo
2017-03-16 13:13:45 +09:00
parent 7b66faab9e
commit 5cafec3b6a
11 changed files with 47 additions and 4 deletions

View File

@ -38,8 +38,8 @@ namespace osu.Game.Database
using (Stream s = storage.GetStream(Path.Combine(replay_folder, replayFilename)))
using (SerializationReader sr = new SerializationReader(s))
{
Ruleset.GetRuleset((PlayMode)sr.ReadByte());
score = new Score();
var ruleset = Ruleset.GetRuleset((PlayMode)sr.ReadByte());
score = ruleset.CreateScoreProcessor().GetScore();
/* score.Pass = true;*/
var version = sr.ReadInt32();