1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

PathStandardise -> ToStandardisedPath

This commit is contained in:
Huo Yaoyuan 2019-12-11 16:06:56 +08:00
parent 6b3c7c8421
commit b86a3dbfab
3 changed files with 5 additions and 5 deletions

View File

@ -112,7 +112,7 @@ namespace osu.Game.Beatmaps.Formats
switch (pair.Key)
{
case @"AudioFilename":
metadata.AudioFile = pair.Value.PathStandardise();
metadata.AudioFile = pair.Value.ToStandardisedPath();
break;
case @"AudioLeadIn":
@ -300,12 +300,12 @@ namespace osu.Game.Beatmaps.Formats
{
case EventType.Background:
string bgFilename = split[2].Trim('"');
beatmap.BeatmapInfo.Metadata.BackgroundFile = bgFilename.PathStandardise();
beatmap.BeatmapInfo.Metadata.BackgroundFile = bgFilename.ToStandardisedPath();
break;
case EventType.Video:
string videoFilename = split[2].Trim('"');
beatmap.BeatmapInfo.Metadata.VideoFile = videoFilename.PathStandardise();
beatmap.BeatmapInfo.Metadata.VideoFile = videoFilename.ToStandardisedPath();
break;
case EventType.Break:

View File

@ -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();
}
}

View File

@ -492,7 +492,7 @@ namespace osu.Game.Database
{
fileInfos.Add(new TFileModel
{
Filename = file.Substring(prefix.Length).PathStandardise(),
Filename = file.Substring(prefix.Length).ToStandardisedPath(),
FileInfo = files.Add(s)
});
}