.str .asr fixed

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@481 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
manakoAT 2008-11-18 19:18:03 +00:00
parent 13a7cdacf5
commit cd1e8893dd

View File

@ -17,10 +17,9 @@ VGMSTREAM * init_vgmstream_str_asr(STREAMFILE *streamFile) {
goto fail;
/* check header */
if (read_32bitBE(0x00,streamFile) != 0x4B4E4F4E && /* "KNON" */
read_32bitBE(0x08,streamFile) != 0x00000000 && /* "0x0" */
read_32bitBE(0xCC,streamFile) != 0x57494920) /* "WII\0x20" */
goto fail;
if (read_32bitBE(0x00,streamFile) != 0x4B4E4F4E && /* "KNON" */
read_32bitBE(0x04,streamFile) != 0x00000000 && /* "0x0" */
read_32bitBE(0x08,streamFile) != 0x57494920) goto fail; /* "WII\0x20" */
loop_flag = (read_32bitBE(0x44,streamFile)!=0);