Skip to content

Commit

Permalink
Merge pull request #41 from Rydahhhhhh/master
Browse files Browse the repository at this point in the history
Handling of any subdirectory in the osu! folder when choosing directory
  • Loading branch information
CaptSiro authored Oct 8, 2024
2 parents e8ab207 + c17e54e commit 20d2018
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/lib/osu-file-parser/OsuParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 20d2018

Please sign in to comment.