mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 06:52:53 +08:00
Address review and fix InspectCode
This commit is contained in:
parent
6658bdb223
commit
219e14baa2
@ -300,13 +300,11 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case LegacyEventType.Background:
|
case LegacyEventType.Background:
|
||||||
string bgFilename = split[2];
|
beatmap.BeatmapInfo.Metadata.BackgroundFile = CleanFilename(split[2]);
|
||||||
beatmap.BeatmapInfo.Metadata.BackgroundFile = CleanFilename(bgFilename);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LegacyEventType.Video:
|
case LegacyEventType.Video:
|
||||||
string videoFilename = split[2];
|
beatmap.BeatmapInfo.Metadata.VideoFile = CleanFilename(split[2]);
|
||||||
beatmap.BeatmapInfo.Metadata.VideoFile = CleanFilename(videoFilename);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LegacyEventType.Break:
|
case LegacyEventType.Break:
|
||||||
|
@ -71,6 +71,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
lineSpan = lineSpan.Slice(1);
|
lineSpan = lineSpan.Slice(1);
|
||||||
++depth;
|
++depth;
|
||||||
}
|
}
|
||||||
|
|
||||||
line = line.Substring(depth);
|
line = line.Substring(depth);
|
||||||
|
|
||||||
decodeVariables(ref line);
|
decodeVariables(ref line);
|
||||||
|
Loading…
Reference in New Issue
Block a user