mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
temporary fix to handle wav files in a pak file
This commit is contained in:
parent
725f1d0595
commit
5be73df678
1 changed files with 2 additions and 1 deletions
|
@ -308,7 +308,8 @@ riff_read (QFile *f)
|
||||||
dstring_delete (riff_buf);
|
dstring_delete (riff_buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
while (Rread (f, &ck, sizeof (ck))) {
|
//FIXME the pos test should be in quakeio
|
||||||
|
while (Qtell (f) < file_len && Rread (f, &ck, sizeof (ck))) {
|
||||||
ck.len = LittleLong (ck.len);
|
ck.len = LittleLong (ck.len);
|
||||||
//printf ("%.4s %d\n", ck.name, ck.len);
|
//printf ("%.4s %d\n", ck.name, ck.len);
|
||||||
if (ck.len < 0x80000000)
|
if (ck.len < 0x80000000)
|
||||||
|
|
Loading…
Reference in a new issue