Wieku/danser-go

Unable to use network drive as skins folder

cyperdark opened this issue · 1 comments

Describe the bug
I have my skins on other computer and im accessing them via network drive, but for some reason danser rewrite path from \\\\ to \\, after that path look like this: \Oldest/e/osu/Skins/replays but should be \\Oldest/e/osu/Skins/replays

Screenshots

1680178781_qAmPCbNoo2.mp4

Logs
Put danser.log here.
danser.log

Wieku commented

Huh, I forgot about this scenario. It was implemented because people were putting wrong number of backslashes and were ending up with malformed paths. I think since GUI is live for a while now and people don't need to manage paths manually I can remove that sanity fix.

It's located here:

// I hope it won't backfire, replacing \ or \\\\\\\ with \\ so JSON can parse it as \
str = regexp.MustCompile(`\\+`).ReplaceAllString(str, `\`)
str = strings.ReplaceAll(str, `\`, `\\`)