Warning/error fixing.

This commit is contained in:
smoogipooo 2017-03-16 12:57:50 +09:00
parent c82ae011fb
commit 82033faaab
2 changed files with 4 additions and 2 deletions

View File

@ -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;*/

View File

@ -40,6 +40,9 @@ public abstract class ScoreProcessor
/// </summary>
public event Action Failed;
/// <summary>
/// Notifies subscribers that the score is in a failed state.
/// </summary>
protected void TriggerFailed()
{
Failed?.Invoke();