From 82033faaabe07faccc84a42b964aa59cc0aab2cd Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Thu, 16 Mar 2017 12:57:50 +0900 Subject: [PATCH] Warning/error fixing. --- osu.Game/Database/ScoreDatabase.cs | 3 +-- osu.Game/Modes/ScoreProcesssor.cs | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/osu.Game/Database/ScoreDatabase.cs b/osu.Game/Database/ScoreDatabase.cs index 0d6a5bf2a3..88d2f360ba 100644 --- a/osu.Game/Database/ScoreDatabase.cs +++ b/osu.Game/Database/ScoreDatabase.cs @@ -38,8 +38,7 @@ public Score ReadReplayFile(string replayFilename) using (Stream s = storage.GetStream(Path.Combine(replay_folder, replayFilename))) using (SerializationReader sr = new SerializationReader(s)) { - var ruleset = Ruleset.GetRuleset((PlayMode)sr.ReadByte()); - + Ruleset.GetRuleset((PlayMode)sr.ReadByte()); score = new Score(); /* score.Pass = true;*/ diff --git a/osu.Game/Modes/ScoreProcesssor.cs b/osu.Game/Modes/ScoreProcesssor.cs index bd17984a0f..cc30117831 100644 --- a/osu.Game/Modes/ScoreProcesssor.cs +++ b/osu.Game/Modes/ScoreProcesssor.cs @@ -40,6 +40,9 @@ public abstract class ScoreProcessor /// public event Action Failed; + /// + /// Notifies subscribers that the score is in a failed state. + /// protected void TriggerFailed() { Failed?.Invoke();