mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-12-01 01:27:20 +01:00
nds strm fixed
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@483 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
3986a97a5f
commit
53e80684d1
@ -18,9 +18,13 @@ VGMSTREAM * init_vgmstream_nds_strm(STREAMFILE *streamFile) {
|
||||
if (strcasecmp("strm",filename_extension(filename))) goto fail;
|
||||
|
||||
/* check header */
|
||||
if ((uint32_t)read_32bitBE(0,streamFile)!=0x5354524D ||
|
||||
(uint32_t)read_32bitBE(4,streamFile)!=0xFFFE0001)
|
||||
goto fail;
|
||||
if ((uint32_t)read_32bitBE(0x00,streamFile)!=0x5354524D) /* STRM */
|
||||
if (read_32bitBE(0x04,streamFile)!=0xFFFE0001) { /* Old Header Check */
|
||||
goto fail;
|
||||
} else if (read_32bitBE(0x04,streamFile)!=0xFEFF0001) { /* Some newer games have a new flag */
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
||||
/* check for HEAD section */
|
||||
if ((uint32_t)read_32bitBE(0x10,streamFile)!=0x48454144 || /* "HEAD" */
|
||||
|
Loading…
Reference in New Issue
Block a user