mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +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)
|
private void handleGeneral(string line)
|
||||||
{
|
{
|
||||||
var pair = SplitKeyVal(line, ':');
|
var pair = SplitKeyVal(line);
|
||||||
|
|
||||||
var metadata = beatmap.BeatmapInfo.Metadata;
|
var metadata = beatmap.BeatmapInfo.Metadata;
|
||||||
switch (pair.Key)
|
switch (pair.Key)
|
||||||
@ -155,7 +155,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
private void handleEditor(string line)
|
private void handleEditor(string line)
|
||||||
{
|
{
|
||||||
var pair = SplitKeyVal(line, ':');
|
var pair = SplitKeyVal(line);
|
||||||
|
|
||||||
switch (pair.Key)
|
switch (pair.Key)
|
||||||
{
|
{
|
||||||
@ -179,7 +179,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
private void handleMetadata(string line)
|
private void handleMetadata(string line)
|
||||||
{
|
{
|
||||||
var pair = SplitKeyVal(line, ':');
|
var pair = SplitKeyVal(line);
|
||||||
|
|
||||||
var metadata = beatmap.BeatmapInfo.Metadata;
|
var metadata = beatmap.BeatmapInfo.Metadata;
|
||||||
switch (pair.Key)
|
switch (pair.Key)
|
||||||
@ -220,7 +220,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
private void handleDifficulty(string line)
|
private void handleDifficulty(string line)
|
||||||
{
|
{
|
||||||
var pair = SplitKeyVal(line, ':');
|
var pair = SplitKeyVal(line);
|
||||||
|
|
||||||
var difficulty = beatmap.BeatmapInfo.BaseDifficulty;
|
var difficulty = beatmap.BeatmapInfo.BaseDifficulty;
|
||||||
switch (pair.Key)
|
switch (pair.Key)
|
||||||
|
@ -55,7 +55,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
private void handleColours(T output, string line)
|
private void handleColours(T output, string line)
|
||||||
{
|
{
|
||||||
var pair = SplitKeyVal(line, ':');
|
var pair = SplitKeyVal(line);
|
||||||
|
|
||||||
bool isCombo = pair.Key.StartsWith(@"Combo");
|
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);
|
var split = line.Trim().Split(new[] { separator }, 2);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user