mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 10:03:05 +08:00
Fix casing issues
Cheers @RemieRichards
This commit is contained in:
parent
c39179d299
commit
dc4bd48f29
@ -35,7 +35,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
HitObjects,
|
HitObjects,
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleGeneral(Beatmap beatmap, string key, string val)
|
private void handleGeneral(Beatmap beatmap, string key, string val)
|
||||||
{
|
{
|
||||||
switch (key)
|
switch (key)
|
||||||
{
|
{
|
||||||
@ -72,7 +72,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleEditor(Beatmap beatmap, string key, string val)
|
private void handleEditor(Beatmap beatmap, string key, string val)
|
||||||
{
|
{
|
||||||
switch (key)
|
switch (key)
|
||||||
{
|
{
|
||||||
@ -94,7 +94,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleMetadata(Beatmap beatmap, string key, string val)
|
private void handleMetadata(Beatmap beatmap, string key, string val)
|
||||||
{
|
{
|
||||||
switch (key)
|
switch (key)
|
||||||
{
|
{
|
||||||
@ -132,7 +132,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleDifficulty(Beatmap beatmap, string key, string val)
|
private void handleDifficulty(Beatmap beatmap, string key, string val)
|
||||||
{
|
{
|
||||||
switch (key)
|
switch (key)
|
||||||
{
|
{
|
||||||
@ -157,7 +157,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleEvents(Beatmap beatmap, string val)
|
private void handleEvents(Beatmap beatmap, string val)
|
||||||
{
|
{
|
||||||
if (val.StartsWith("//"))
|
if (val.StartsWith("//"))
|
||||||
return;
|
return;
|
||||||
@ -176,12 +176,12 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
beatmap.Metadata.BackgroundFile = split[2].Trim('"');
|
beatmap.Metadata.BackgroundFile = split[2].Trim('"');
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleTimingPoints(Beatmap beatmap, string val)
|
private void handleTimingPoints(Beatmap beatmap, string val)
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleColours(Beatmap beatmap, string key, string val)
|
private void handleColours(Beatmap beatmap, string key, string val)
|
||||||
{
|
{
|
||||||
string[] split = val.Split(',');
|
string[] split = val.Split(',');
|
||||||
if (split.Length != 3)
|
if (split.Length != 3)
|
||||||
@ -238,25 +238,25 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
switch (section)
|
switch (section)
|
||||||
{
|
{
|
||||||
case Section.General:
|
case Section.General:
|
||||||
HandleGeneral(beatmap, key, val);
|
handleGeneral(beatmap, key, val);
|
||||||
break;
|
break;
|
||||||
case Section.Editor:
|
case Section.Editor:
|
||||||
HandleEditor(beatmap, key, val);
|
handleEditor(beatmap, key, val);
|
||||||
break;
|
break;
|
||||||
case Section.Metadata:
|
case Section.Metadata:
|
||||||
HandleMetadata(beatmap, key, val);
|
handleMetadata(beatmap, key, val);
|
||||||
break;
|
break;
|
||||||
case Section.Difficulty:
|
case Section.Difficulty:
|
||||||
HandleDifficulty(beatmap, key, val);
|
handleDifficulty(beatmap, key, val);
|
||||||
break;
|
break;
|
||||||
case Section.Events:
|
case Section.Events:
|
||||||
HandleEvents(beatmap, val);
|
handleEvents(beatmap, val);
|
||||||
break;
|
break;
|
||||||
case Section.TimingPoints:
|
case Section.TimingPoints:
|
||||||
HandleTimingPoints(beatmap, val);
|
handleTimingPoints(beatmap, val);
|
||||||
break;
|
break;
|
||||||
case Section.Colours:
|
case Section.Colours:
|
||||||
HandleColours(beatmap, key, val);
|
handleColours(beatmap, key, val);
|
||||||
break;
|
break;
|
||||||
case Section.HitObjects:
|
case Section.HitObjects:
|
||||||
beatmap.HitObjects.Add(HitObject.Parse(beatmap.Mode, val));
|
beatmap.HitObjects.Add(HitObject.Parse(beatmap.Mode, val));
|
||||||
|
Loading…
Reference in New Issue
Block a user