Remove data/ from track name list, refactor music loading, and support loose ogg music

(these should be separate commits but they're annoying to split after
the fact, oh well)
This commit is contained in:
leo60228 authored and Misa Elizabeth Kai committed 2021-08-31 15:30:23 -07:00
1 parent 5b6c4b6b28
commit f86a67456b
3 files changed
+53 -28

No files matched your search

+1 -2
View File
@@ -134,9 +134,8 @@ bool binaryBlob::nextExtra(size_t* start)
for (idx = start; *idx < SDL_arraysize(m_headers); *idx += 1)
{
if (m_headers[*idx].valid
#define FOREACH_TRACK(_, track_name) && SDL_strcmp(m_headers[*idx].name, track_name) != 0
#define FOREACH_TRACK(_, track_name) && SDL_strcmp(m_headers[*idx].name, "data/" track_name) != 0
TRACK_NAMES(_)
#undef FOREACH_TRACK
) {
return true;
}