add .vig as an alternative extension for VAG

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@362 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-07-22 00:37:06 +00:00
parent 2604064a8f
commit 3be472a76e
4 changed files with 5 additions and 1 deletions

View File

@ -131,6 +131,7 @@ File types supported by this version of vgmstream:
- .acm (InterPlay ACM)
- .sli (loop info for .ogg)
- .psh (PS2 ADPCM)
- .vig (PS2 ADPCM)
Enjoy!
-hcs

View File

@ -37,7 +37,8 @@ VGMSTREAM * init_vgmstream_ps2_vag(STREAMFILE *streamFile) {
/* check extension, case insensitive */
streamFile->get_name(streamFile,filename,sizeof(filename));
if (strcasecmp("vag",filename_extension(filename))) goto fail;
if (strcasecmp("vag",filename_extension(filename)) &&
strcasecmp("vig",filename_extension(filename))) goto fail;
/* check VAG Header */
if (((read_32bitBE(0x00,streamFile) & 0xFFFFFF00) != 0x56414700) &&

View File

@ -92,6 +92,7 @@ gchar *vgmstream_exts [] = {
"mus",
"sli",
"lwav",
"vig",
/* terminator */
NULL
};

View File

@ -156,6 +156,7 @@ char * extension_list[] = {
"psh\0PSH Audio File (*.PSH)\0",
"sli\0SLI Audio File (*.SLI)\0",
"lwav\0LWAV Audio File (*.LWAV)\0",
"vig\0VIG Audio File (*.VIG)\0",
};
void about(HWND hwndParent) {