Skip to content

Commit

Permalink
Merge pull request #144 from suspectz/fix/v4-duration
Browse files Browse the repository at this point in the history
Get duration from full song, not preview
  • Loading branch information
Meivyn authored Apr 30, 2024
2 parents 9c19c84 + 9dd71bc commit 474d601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/SongCore/Loader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ private static void GetSongDuration(CustomLevelLoader.LoadedSaveData loadedSaveD
}
else if (loadedSaveData.beatmapLevelSaveData != null)
{
length = GetLengthFromOgg(Path.Combine(loadedSaveData.customLevelFolderInfo.folderPath, loadedSaveData.beatmapLevelSaveData.songPreviewFilename));
length = GetLengthFromOgg(Path.Combine(loadedSaveData.customLevelFolderInfo.folderPath, loadedSaveData.beatmapLevelSaveData.audio.songFilename));
}
}
catch (Exception)
Expand Down

0 comments on commit 474d601

Please sign in to comment.