mirror of
https://github.com/osukey/osukey.git
synced 2025-05-28 17:07:35 +09:00
Add default separator character
This commit is contained in:
parent
c4f5b46d72
commit
62e908e22c
@ -96,7 +96,7 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
private void handleGeneral(string line)
|
||||
{
|
||||
var pair = SplitKeyVal(line, ':');
|
||||
var pair = SplitKeyVal(line);
|
||||
|
||||
var metadata = beatmap.BeatmapInfo.Metadata;
|
||||
switch (pair.Key)
|
||||
@ -155,7 +155,7 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
private void handleEditor(string line)
|
||||
{
|
||||
var pair = SplitKeyVal(line, ':');
|
||||
var pair = SplitKeyVal(line);
|
||||
|
||||
switch (pair.Key)
|
||||
{
|
||||
@ -179,7 +179,7 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
private void handleMetadata(string line)
|
||||
{
|
||||
var pair = SplitKeyVal(line, ':');
|
||||
var pair = SplitKeyVal(line);
|
||||
|
||||
var metadata = beatmap.BeatmapInfo.Metadata;
|
||||
switch (pair.Key)
|
||||
@ -220,7 +220,7 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
private void handleDifficulty(string line)
|
||||
{
|
||||
var pair = SplitKeyVal(line, ':');
|
||||
var pair = SplitKeyVal(line);
|
||||
|
||||
var difficulty = beatmap.BeatmapInfo.BaseDifficulty;
|
||||
switch (pair.Key)
|
||||
|
@ -55,7 +55,7 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
private void handleColours(T output, string line)
|
||||
{
|
||||
var pair = SplitKeyVal(line, ':');
|
||||
var pair = SplitKeyVal(line);
|
||||
|
||||
bool isCombo = pair.Key.StartsWith(@"Combo");
|
||||
|
||||
@ -89,7 +89,7 @@ namespace osu.Game.Beatmaps.Formats
|
||||
}
|
||||
}
|
||||
|
||||
protected KeyValuePair<string, string> SplitKeyVal(string line, char separator)
|
||||
protected KeyValuePair<string, string> SplitKeyVal(string line, char separator = ':')
|
||||
{
|
||||
var split = line.Trim().Split(new[] { separator }, 2);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user