mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-12 09:40:51 +01:00
ok, so .vig is kces, not vag
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@418 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
f23bf6e796
commit
05eef2c5bf
@ -12,7 +12,8 @@ VGMSTREAM * init_vgmstream_ps2_kces(STREAMFILE *streamFile) {
|
||||
|
||||
/* check extension, case insensitive */
|
||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||
if (strcasecmp("kces",filename_extension(filename))) goto fail;
|
||||
if (strcasecmp("kces",filename_extension(filename)) &&
|
||||
strcasecmp("vig",filename_extension(filename))) goto fail;
|
||||
|
||||
/* check header */
|
||||
if (read_32bitBE(0x00,streamFile) != 0x01006408)
|
||||
|
@ -37,8 +37,7 @@ VGMSTREAM * init_vgmstream_ps2_vag(STREAMFILE *streamFile) {
|
||||
|
||||
/* check extension, case insensitive */
|
||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||
if (strcasecmp("vag",filename_extension(filename)) &&
|
||||
strcasecmp("vig",filename_extension(filename))) goto fail;
|
||||
if (strcasecmp("vag",filename_extension(filename))) goto fail;
|
||||
|
||||
/* check VAG Header */
|
||||
if (((read_32bitBE(0x00,streamFile) & 0xFFFFFF00) != 0x56414700) &&
|
||||
|
Loading…
Reference in New Issue
Block a user