1
0
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:
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) 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:

View File

@ -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);