We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b42035a commit da3cc6fCopy full SHA for da3cc6f
CloneDash/Compatibility/CustomAlbums/CustomCharts.cs
@@ -113,8 +113,10 @@ public CustomChartsSong(string pathID, string path) {
113
114
protected override MusicTrack ProduceAudioTrack() {
115
if (Archive != null) {
116
- var demoBytes = GetByteArray(Archive, "music.ogg");
117
- return EngineCore.Level.Sounds.LoadMusicFromMemory(demoBytes);
+ var musicBytes = GetByteArray(Archive, "music.ogg");
+ if (musicBytes.Length == 0) // Try to find mp3 instead
118
+ musicBytes = GetByteArray(Archive, "music.mp3");
119
+ return EngineCore.Level.Sounds.LoadMusicFromMemory(musicBytes);
120
}
121
else {
122
return WebChart.GetMusicTrack(false); // this wont even run
0 commit comments