mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-22 08:49:46 +01:00
Parse extra headers from binary blob
Not just the ones that contain specific names.
This commit is contained in:
parent
4c2f5ed032
commit
08fe655a5f
1 changed files with 16 additions and 0 deletions
|
@ -78,6 +78,14 @@ void musicclass::init()
|
|||
|
||||
TRACK_NAMES
|
||||
|
||||
const std::vector<int> extra = musicReadBlob.getExtra();
|
||||
for (size_t i = 0; i < extra.size(); i++)
|
||||
{
|
||||
const int& index = extra[i];
|
||||
rw = SDL_RWFromMem(musicReadBlob.getAddress(index), musicReadBlob.getSize(index));
|
||||
musicTracks.push_back(MusicTrack( rw ));
|
||||
}
|
||||
|
||||
bool ohCrap = musicReadBlob.unPackBinary("vvvvvvmusic.vvv");
|
||||
SDL_assert(ohCrap && "Music not found!");
|
||||
}
|
||||
|
@ -89,6 +97,14 @@ void musicclass::init()
|
|||
|
||||
#undef FOREACH_TRACK
|
||||
|
||||
const std::vector<int> extra = musicReadBlob.getExtra();
|
||||
for (size_t i = 0; i < extra.size(); i++)
|
||||
{
|
||||
const int& index = extra[i];
|
||||
rw = SDL_RWFromMem(musicReadBlob.getAddress(index), musicReadBlob.getSize(index));
|
||||
musicTracks.push_back(MusicTrack( rw ));
|
||||
}
|
||||
|
||||
safeToProcessMusic= false;
|
||||
m_doFadeInVol = false;
|
||||
musicVolume = 128;
|
||||
|
|
Loading…
Reference in a new issue