1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:17:51 +08:00

Merge pull request #21356 from peppy/standardise-broken-storyboard-paths

Add support for storyboards with incorrect path specifications (`\\` instead of `\`)
This commit is contained in:
Dan Balasescu 2022-11-22 14:33:51 +09:00 committed by GitHub
commit 985781bc3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
{