Add error handling on a per-line level in LegacyDecoder

Resolves #2306.
This commit is contained in:
Dean Herbert
2018-04-20 18:32:24 +09:00
parent 45eaa53d01
commit b16e25c3e9
4 changed files with 19 additions and 12 deletions

View File

@ -12,7 +12,7 @@ namespace osu.Game.Skinning
{
}
protected override void ParseLine(SkinConfiguration output, Section section, string line)
protected override void ParseLine(SkinConfiguration skin, Section section, string line)
{
switch (section)
{
@ -22,17 +22,17 @@ namespace osu.Game.Skinning
switch (pair.Key)
{
case @"Name":
output.SkinInfo.Name = pair.Value;
skin.SkinInfo.Name = pair.Value;
break;
case @"Author":
output.SkinInfo.Creator = pair.Value;
skin.SkinInfo.Creator = pair.Value;
break;
}
break;
}
base.ParseLine(output, section, line);
base.ParseLine(skin, section, line);
}
}
}