mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 18:47:27 +08:00
5a10270a2a
no real reason but whatever works
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Game.Beatmaps.Formats;
|
|
|
|
namespace osu.Game.Skinning
|
|
{
|
|
public class LegacySkinDecoder : LegacyDecoder<SkinConfiguration>
|
|
{
|
|
public LegacySkinDecoder()
|
|
: base(1)
|
|
{
|
|
}
|
|
|
|
protected override void ParseLine(SkinConfiguration output, Section section, string line)
|
|
{
|
|
switch (section)
|
|
{
|
|
case Section.General:
|
|
var pair = SplitKeyVal(line);
|
|
|
|
switch (pair.Key)
|
|
{
|
|
case @"Name":
|
|
output.SkinInfo.Name = pair.Value;
|
|
break;
|
|
case @"Author":
|
|
output.SkinInfo.Creator = pair.Value;
|
|
break;
|
|
}
|
|
|
|
break;
|
|
}
|
|
|
|
base.ParseLine(output, section, line);
|
|
}
|
|
}
|
|
}
|