We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43841fb + b3dc333 commit 43e6e66Copy full SHA for 43e6e66
app/beatmap/parser.go
@@ -240,7 +240,9 @@ func ParseBeatMap(beatMap *BeatMap) error {
240
241
func ParseBeatMapFile(file *os.File) *BeatMap {
242
beatMap := NewBeatMap()
243
- beatMap.Dir = filepath.Base(filepath.Dir(file.Name()))
+ beatMap.Dir, _ = filepath.Rel(settings.General.GetSongsDir(), filepath.Dir(file.Name()))
244
+ beatMap.Dir = filepath.ToSlash(beatMap.Dir)
245
+
246
f, _ := file.Stat()
247
beatMap.File = f.Name()
248
0 commit comments