Skip to content

Commit

Permalink
fix: Fix startup issues with beatmap folder
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark authored and KotRikD committed Feb 15, 2024
1 parent a974ddf commit 3a592b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/tosu/src/objects/instanceManager/osuInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ export class OsuInstance {
]);

// osu! calculates audioTrack length a little bit after updating menuData, sooo.. lets this thing run regardless of menuData updating
await menuData.updateMP3Length();
if (menuData.Folder != '' && menuData.Folder != null)
menuData.updateMP3Length();

if (!settings.gameFolder) {
settings.setGameFolder(path.join(this.path, '../'));
Expand Down Expand Up @@ -367,7 +368,7 @@ export class OsuInstance {
const currentTimeMD5 = `${menuData.MD5}:${menuData.MenuGameMode}:${currentMods}:${menuData.MP3Length}`;

if (
menuData.Path.endsWith('.osu') &&
menuData.Path?.endsWith('.osu') &&
settings.gameFolder &&
previousState !== currentTimeMD5
) {
Expand Down

0 comments on commit 3a592b6

Please sign in to comment.