1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 20:32:55 +08:00

Address review and fix InspectCode

This commit is contained in:
Berkan Diler 2020-01-24 17:05:27 +01:00
parent 6658bdb223
commit 219e14baa2
2 changed files with 3 additions and 4 deletions

View File

@ -300,13 +300,11 @@ namespace osu.Game.Beatmaps.Formats
switch (type)
{
case LegacyEventType.Background:
string bgFilename = split[2];
beatmap.BeatmapInfo.Metadata.BackgroundFile = CleanFilename(bgFilename);
beatmap.BeatmapInfo.Metadata.BackgroundFile = CleanFilename(split[2]);
break;
case LegacyEventType.Video:
string videoFilename = split[2];
beatmap.BeatmapInfo.Metadata.VideoFile = CleanFilename(videoFilename);
beatmap.BeatmapInfo.Metadata.VideoFile = CleanFilename(split[2]);
break;
case LegacyEventType.Break:

View File

@ -71,6 +71,7 @@ namespace osu.Game.Beatmaps.Formats
lineSpan = lineSpan.Slice(1);
++depth;
}
line = line.Substring(depth);
decodeVariables(ref line);