diff --git a/src/main/lib/osu-file-parser/OsuParser.ts b/src/main/lib/osu-file-parser/OsuParser.ts index 01a8ef9a..a309c4d1 100644 --- a/src/main/lib/osu-file-parser/OsuParser.ts +++ b/src/main/lib/osu-file-parser/OsuParser.ts @@ -117,6 +117,11 @@ export class OsuParser { update?: (i: number, total: number, file: string) => any ): DirParseResult { let dbBuffer; + + if (databasePath.includes("osu!")) { + // Handles any subdirectory of the 'osu!' folder when choosing a directory + databasePath = databasePath.substring(0, databasePath.lastIndexOf("osu!") + 4); + } let songsFolderPath = databasePath + "/Songs"; try {