mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 19:53:23 +08:00
Fix formatting, make StripComments protected
Don't strip comments when calling ParseLine
This commit is contained in:
parent
429306aa87
commit
fc77e01ba9
@ -89,7 +89,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
base.ParseLine(beatmap, section, strippedLine);
|
base.ParseLine(beatmap, section, line);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleGeneral(string line)
|
private void handleGeneral(string line)
|
||||||
|
@ -66,7 +66,8 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
internal string StripComments(string line)
|
|
||||||
|
protected string StripComments(string line)
|
||||||
{
|
{
|
||||||
var index = line.IndexOf("//", StringComparison.Ordinal);
|
var index = line.IndexOf("//", StringComparison.Ordinal);
|
||||||
if (index > 0)
|
if (index > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user