Fix AdLib timbre loading

git-svn-id: https://svn.eduke32.com/eduke32@8231 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-10-20 02:28:05 +00:00 committed by Christoph Oelckers
parent 47942db0a3
commit f0acbc1ca5

View file

@ -119,9 +119,9 @@ void S_MusicStartup(void)
{ {
MUSIC_SetVolume(mus_volume); MUSIC_SetVolume(mus_volume);
// TODO: figure out why this produces garbage output auto const fil = kopen4load("d3dtimbr.tmb", 0);
#if 0
if (auto fil = kopen4load("d3dtimbr.tmb", 0) != -1) if (fil != buildvfs_kfd_invalid)
{ {
int l = kfilelength(fil); int l = kfilelength(fil);
auto tmb = (uint8_t *)Xmalloc(l); auto tmb = (uint8_t *)Xmalloc(l);
@ -130,7 +130,7 @@ void S_MusicStartup(void)
Xfree(tmb); Xfree(tmb);
kclose(fil); kclose(fil);
} }
#endif
return; return;
} }