1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 18:03:11 +08:00

Add support for storyboards with incorrect path specifications (\\ instead of \)

Closes https://github.com/ppy/osu/issues/21204.
This commit is contained in:
Dean Herbert 2022-11-21 16:06:36 +09:00
parent 4a79141824
commit 3da21e596a

View File

@ -147,7 +147,11 @@ namespace osu.Game.Beatmaps.Formats
);
}
protected string CleanFilename(string path) => path.Trim('"').ToStandardisedPath();
protected string CleanFilename(string path) => path
// User error which is supported by stable (https://github.com/ppy/osu/issues/21204)
.Replace(@"\\", @"\")
.Trim('"')
.ToStandardisedPath();
public enum Section
{