Skip to content

Commit

Permalink
fix: Empty background path
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark authored and KotRikD committed Feb 15, 2024
1 parent d821a29 commit 0f8379c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/tosu/src/entities/BeatmapPpData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,15 @@ export class BeatmapPPData extends AbstractEntity {
parseColours: false,
parseDifficulty: false,
parseEditor: false,
parseEvents: false,
parseEvents: true,
parseGeneral: false,
parseMetadata: false
});

const { bpm, bpmMin, bpmMax } = lazerBeatmap;

menuData.BackgroundFilename =
lazerBeatmap.events.backgroundPath || '';
this.updateBPM(bpm, bpmMin, bpmMax);

const firstObj = Math.round(
Expand Down
6 changes: 3 additions & 3 deletions packages/tosu/src/entities/MenuData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ export class MenuData extends AbstractEntity {
process.readInt(beatmapAddr + 0x64)
);
// // [[Beatmap] + 0x68]
this.BackgroundFilename = process.readSharpString(
process.readInt(beatmapAddr + 0x68)
);
// this.BackgroundFilename = process.readSharpString(
// process.readInt(beatmapAddr + 0x68)
// );
// [[Beatmap] + 0x78]
this.Folder = process.readSharpString(
process.readInt(beatmapAddr + 0x78)
Expand Down

0 comments on commit 0f8379c

Please sign in to comment.