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
1 changed files with 5 additions and 1 deletions

View File

@ -147,7 +147,11 @@ protected KeyValuePair<string, string> SplitKeyVal(string line, char separator =
);
}
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
{