mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
PathStandardise -> ToStandardisedPath
This commit is contained in:
@ -112,7 +112,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
switch (pair.Key)
|
switch (pair.Key)
|
||||||
{
|
{
|
||||||
case @"AudioFilename":
|
case @"AudioFilename":
|
||||||
metadata.AudioFile = pair.Value.PathStandardise();
|
metadata.AudioFile = pair.Value.ToStandardisedPath();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case @"AudioLeadIn":
|
case @"AudioLeadIn":
|
||||||
@ -300,12 +300,12 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
{
|
{
|
||||||
case EventType.Background:
|
case EventType.Background:
|
||||||
string bgFilename = split[2].Trim('"');
|
string bgFilename = split[2].Trim('"');
|
||||||
beatmap.BeatmapInfo.Metadata.BackgroundFile = bgFilename.PathStandardise();
|
beatmap.BeatmapInfo.Metadata.BackgroundFile = bgFilename.ToStandardisedPath();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EventType.Video:
|
case EventType.Video:
|
||||||
string videoFilename = split[2].Trim('"');
|
string videoFilename = split[2].Trim('"');
|
||||||
beatmap.BeatmapInfo.Metadata.VideoFile = videoFilename.PathStandardise();
|
beatmap.BeatmapInfo.Metadata.VideoFile = videoFilename.ToStandardisedPath();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EventType.Break:
|
case EventType.Break:
|
||||||
|
@ -335,6 +335,6 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private string cleanFilename(string path) => path.Trim('"').PathStandardise();
|
private string cleanFilename(string path) => path.Trim('"').ToStandardisedPath();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -492,7 +492,7 @@ namespace osu.Game.Database
|
|||||||
{
|
{
|
||||||
fileInfos.Add(new TFileModel
|
fileInfos.Add(new TFileModel
|
||||||
{
|
{
|
||||||
Filename = file.Substring(prefix.Length).PathStandardise(),
|
Filename = file.Substring(prefix.Length).ToStandardisedPath(),
|
||||||
FileInfo = files.Add(s)
|
FileInfo = files.Add(s)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user