mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-28 00:20:47 +01:00
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:
parent
2604064a8f
commit
3be472a76e
@ -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
|
||||
|
@ -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) &&
|
||||
|
@ -92,6 +92,7 @@ gchar *vgmstream_exts [] = {
|
||||
"mus",
|
||||
"sli",
|
||||
"lwav",
|
||||
"vig",
|
||||
/* terminator */
|
||||
NULL
|
||||
};
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user