Skip to content

Commit

Permalink
Move beatmap background file parent setting directly to `BeatmapData.…
Browse files Browse the repository at this point in the history
…populateMetadata`
  • Loading branch information
Rian8337 committed Aug 14, 2023
1 parent 4a4f1ab commit 4e6f206
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/ru/nsu/ccfit/zuev/osu/LibraryManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@ private static void scanFolder(final BeatmapInfo info) {
}
continue;
}
if (track.getBackground() != null) {
track.setBackground(info.getPath() + "/"
+ track.getBackground());
}

if (data.events.videoFilename != null && Config.isDeleteUnsupportedVideos()) {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/ru/nsu/ccfit/zuev/osu/beatmap/BeatmapData.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public boolean populateMetadata(final TrackInfo track) {
track.setCircleSize(difficulty.cs);

// Events
track.setBackground(events.backgroundFilename);
track.setBackground(folder + File.pathSeparator + events.backgroundFilename);

// Timing points
for (TimingControlPoint point : timingPoints.timing.getControlPoints()) {
Expand Down

0 comments on commit 4e6f206

Please sign in to comment.