Add .CD wav extension

This commit is contained in:
bnnm 2017-10-14 12:34:32 +02:00
parent c90c00f837
commit 4d0c8b54fd
3 changed files with 8 additions and 5 deletions

View File

@ -88,6 +88,7 @@ VGMSTREAM_DECLARE_FILE_TYPE("CAF", caf);
VGMSTREAM_DECLARE_FILE_TYPE("CAPDSP", capdsp);
VGMSTREAM_DECLARE_FILE_TYPE("CBD2", cbd2);
VGMSTREAM_DECLARE_FILE_TYPE("CCC", ccc);
VGMSTREAM_DECLARE_FILE_TYPE("CD", cd);
VGMSTREAM_DECLARE_FILE_TYPE("CFN", cfn);
VGMSTREAM_DECLARE_FILE_TYPE("CKD", ckd);
VGMSTREAM_DECLARE_FILE_TYPE("CNK", cnk);

View File

@ -81,6 +81,7 @@ static const char* extension_list[] = {
"capdsp",
"cbd2",
"ccc",
"cd",
"cfn",
"ckd",
"cnk",

View File

@ -262,13 +262,14 @@ VGMSTREAM * init_vgmstream_riff(STREAMFILE *streamFile) {
/* check extension, case insensitive */
streamFile->get_name(streamFile,filename,sizeof(filename));
if (strcasecmp("wav",filename_extension(filename)) &&
strcasecmp("lwav",filename_extension(filename)) &&
strcasecmp("da",filename_extension(filename)) /* SD Gundam - Over Galaxian, The Great Battle VI (PS) */
if (strcasecmp("wav",filename_extension(filename))
&& strcasecmp("lwav",filename_extension(filename))
&& strcasecmp("da",filename_extension(filename)) /* SD Gundam - Over Galaxian, The Great Battle VI (PS) */
&& strcasecmp("cd",filename_extension(filename)) /* Exector (PS) */
#ifndef VGM_USE_FFMPEG
&& strcasecmp("sgb",filename_extension(filename)) /* SGB has proper support with FFmpeg in sgxd */
&& strcasecmp("sgb",filename_extension(filename)) /* SGB has proper support with FFmpeg in sgxd */
#endif
&& strcasecmp("med",filename_extension(filename))
&& strcasecmp("med",filename_extension(filename))
)
{
if (!strcasecmp("mwv",filename_extension(filename)))