mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-12 01:30:49 +01:00
.jstm instead of .stm to avoid collision
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@822 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
5df5090fdd
commit
f9f2df71fd
@ -339,6 +339,7 @@ bool input_vgmstream::g_is_our_path(const char * p_path,const char * p_extension
|
||||
if(!stricmp_utf8(p_extension,"ivb")) return 1;
|
||||
|
||||
if(!stricmp_utf8(p_extension,"joe")) return 1;
|
||||
if(!stricmp_utf8(p_extension,"jstm")) return 1;
|
||||
|
||||
if(!stricmp_utf8(p_extension,"kces")) return 1;
|
||||
if(!stricmp_utf8(p_extension,"kcey")) return 1;
|
||||
@ -617,6 +618,7 @@ DECLARE_MULTIPLE_FILE_TYPE("IVAUD Audio File (*.IVAUD)", ivaud);
|
||||
DECLARE_MULTIPLE_FILE_TYPE("IVB Audio File (*.IVB)", ivb);
|
||||
|
||||
DECLARE_MULTIPLE_FILE_TYPE("JOE Audio File (*.JOE)", joe);
|
||||
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);
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "meta.h"
|
||||
#include "../util.h"
|
||||
|
||||
/* JSTM (.STM from Tantei Jinguji Saburo - Kind of Blue) */
|
||||
/* JSTM (.STM (renamed .JSTM) from Tantei Jinguji Saburo - Kind of Blue) */
|
||||
VGMSTREAM * init_vgmstream_ps2_jstm(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
off_t start_offset = 0x20;;
|
||||
@ -11,7 +11,8 @@ VGMSTREAM * init_vgmstream_ps2_jstm(STREAMFILE *streamFile) {
|
||||
|
||||
/* check extension */
|
||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||
if (strcasecmp("stm",filename_extension(filename))) goto fail;
|
||||
if (strcasecmp("stm",filename_extension(filename)) &&
|
||||
strcasecmp("jstm",filename_extension(filename))) goto fail;
|
||||
|
||||
/* check header (JSTM) */
|
||||
if (read_32bitBE(0x0,streamFile) != 0x4A53544D) goto fail;
|
||||
|
@ -101,6 +101,7 @@ gchar *vgmstream_exts [] = {
|
||||
"ivb",
|
||||
|
||||
"joe",
|
||||
"jstm",
|
||||
|
||||
"kces",
|
||||
"kcey",
|
||||
|
@ -166,6 +166,7 @@ char * extension_list[] = {
|
||||
"ivb\0IVB Audio File (*.IVB)\0",
|
||||
|
||||
"joe\0JOE Audio File (*.JOE)\0",
|
||||
"jstm\0JSTM Audio File (*.JSTM)\0",
|
||||
|
||||
"kces\0KCES Audio File (*.KCES)\0",
|
||||
"kcey\0KCEY Audio File (*.KCEY)\0",
|
||||
|
Loading…
Reference in New Issue
Block a user