From f68125a041da78977aec41b978e5d5c120d93842 Mon Sep 17 00:00:00 2001 From: snakemeat Date: Thu, 24 Mar 2011 02:29:09 +0000 Subject: [PATCH] Update KLBS to use original .BNK extension. git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@937 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- fb2k/in_vgmstream.cpp | 4 ++-- src/meta/ps3_klbs.c | 2 +- winamp/in_vgmstream.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fb2k/in_vgmstream.cpp b/fb2k/in_vgmstream.cpp index e6e751c2..787a8d34 100644 --- a/fb2k/in_vgmstream.cpp +++ b/fb2k/in_vgmstream.cpp @@ -297,6 +297,7 @@ bool input_vgmstream::g_is_our_path(const char * p_path,const char * p_extension if(!stricmp_utf8(p_extension,"bgw")) return 1; if(!stricmp_utf8(p_extension,"bh2pcm")) return 1; if(!stricmp_utf8(p_extension,"bmdx")) return 1; + if(!stricmp_utf8(p_extension,"bnk")) return 1; if(!stricmp_utf8(p_extension,"bns")) return 1; if(!stricmp_utf8(p_extension,"bnsf")) return 1; if(!stricmp_utf8(p_extension,"bo2")) return 1; @@ -362,7 +363,6 @@ bool input_vgmstream::g_is_our_path(const char * p_path,const char * p_extension if(!stricmp_utf8(p_extension,"kces")) return 1; if(!stricmp_utf8(p_extension,"kcey")) return 1; if(!stricmp_utf8(p_extension,"khv")) return 1; - if(!stricmp_utf8(p_extension,"klbs")) return 1; if(!stricmp_utf8(p_extension,"kovs")) return 1; if(!stricmp_utf8(p_extension,"kraw")) return 1; @@ -605,6 +605,7 @@ DECLARE_MULTIPLE_FILE_TYPE("BG00 Audio File (*.BG00)", bg00); DECLARE_MULTIPLE_FILE_TYPE("BGW Audio File (*.BGW)", bgw); DECLARE_MULTIPLE_FILE_TYPE("BH2PCM Audio File (*.BH2PCM)", bh2pcm); DECLARE_MULTIPLE_FILE_TYPE("BMDX Audio File (*.BMDX)", bmdx); +DECLARE_MULTIPLE_FILE_TYPE("KLBS Audio File (*.BNK)", bnk); DECLARE_MULTIPLE_FILE_TYPE("BNS Audio File (*.BNS)", bns); DECLARE_MULTIPLE_FILE_TYPE("BNSF Audio File (*.BNSF)", bnsf); DECLARE_MULTIPLE_FILE_TYPE("BO2 Audio File (*.BO2)", bo2); @@ -669,7 +670,6 @@ DECLARE_MULTIPLE_FILE_TYPE("JSTM Audio File (*.JSTM)", jstm); DECLARE_MULTIPLE_FILE_TYPE("KCES Audio File (*.KCES)", kces); DECLARE_MULTIPLE_FILE_TYPE("KCEY Audio File (*.KCEY)", kcey); DECLARE_MULTIPLE_FILE_TYPE("KHV Audio File (*.KHV)", khv); -DECLARE_MULTIPLE_FILE_TYPE("KLBS Audio File (*.KLBS)", klbs); DECLARE_MULTIPLE_FILE_TYPE("KOVS Audio File (*.KOVS)", kovs); DECLARE_MULTIPLE_FILE_TYPE("KRAW Audio File (*.KRAW)", kraw); diff --git a/src/meta/ps3_klbs.c b/src/meta/ps3_klbs.c index 779cd3e4..f0dd43cd 100644 --- a/src/meta/ps3_klbs.c +++ b/src/meta/ps3_klbs.c @@ -19,7 +19,7 @@ VGMSTREAM * init_vgmstream_ps3_klbs(STREAMFILE *streamFile) /* check extension, case insensitive */ streamFile->get_name(streamFile,filename,sizeof(filename)); - if (strcasecmp("klbs",filename_extension(filename))) goto fail; + if (strcasecmp("bnk",filename_extension(filename))) goto fail; /* check header */ if (read_32bitBE(0x20,streamFile) != 0x6B6C4253) diff --git a/winamp/in_vgmstream.c b/winamp/in_vgmstream.c index 7ecc7ec4..d5a015ee 100644 --- a/winamp/in_vgmstream.c +++ b/winamp/in_vgmstream.c @@ -110,7 +110,8 @@ char * extension_list[] = { "bgw\0BGW Audio File (*.BGW)\0", "bh2pcm\0BH2PCM Audio File (*.BH2PCM)\0", "bmdx\0BMDX Audio File (*.BMDX)\0", - "bns\0BNS Audio File (*.BNS)\0", + "bnk\0BNK Audio File (*.BNK)\0", + "bns\0BNS Audio File (*.BNS)\0", "bnsf\0BNSF Audio File (*.BNSF)\0", "bo2\0BO2 Audio File (*.BO2)\0", "brstm;brstmspm\0BRSTM Audio File (*.BRSTM)\0", @@ -175,8 +176,7 @@ char * extension_list[] = { "kces\0KCES Audio File (*.KCES)\0", "kcey\0KCEY Audio File (*.KCEY)\0", - "khv\0KHV Audio File (*.KHV)\0", - "klbs\0KLBS Audio File (*.KLBS)\0", + "khv\0KHV Audio File (*.KHV)\0", "kovs\0KOVS Audio File (*.KOVS)\0", "kraw\0KRAW Audio File (*.KRAW)\0",