Add PASX .sgb extension [Death By Cube (X360)]

This commit is contained in:
bnnm 2020-01-12 12:52:03 +01:00
parent 9fdf2dbf1a
commit a90259ca50
2 changed files with 5 additions and 3 deletions

View File

@ -1126,7 +1126,7 @@ static const meta_info meta_info_list[] = {
{meta_FFMPEG, "FFmpeg supported file format"},
{meta_X360_CXS, "tri-Crescendo CXS header"},
{meta_AKB, "Square-Enix AKB header"},
{meta_X360_PASX, "Namco PASX header"},
{meta_X360_PASX, "Premium Agency PASX header"},
{meta_XMA_RIFF, "Microsoft XMA RIFF header"},
{meta_X360_AST, "Capcom AST (X360) header"},
{meta_WWISE_RIFF, "Audiokinetic Wwise RIFF header"},

View File

@ -1,7 +1,7 @@
#include "meta.h"
#include "../coding/coding.h"
/* PASX - from SoulCalibur II HD (X360) */
/* PASX - from Premium Agency games [SoulCalibur II HD (X360), Death By Cube (X360)] */
VGMSTREAM * init_vgmstream_x360_pasx(STREAMFILE *streamFile) {
VGMSTREAM * vgmstream = NULL;
off_t start_offset, chunk_offset;
@ -11,7 +11,9 @@ VGMSTREAM * init_vgmstream_x360_pasx(STREAMFILE *streamFile) {
/* checks */
if ( !check_extensions(streamFile,"past"))
/* .past: Soul Calibur II HD
* .sgb: Death By Cube */
if ( !check_extensions(streamFile,"past,sgb"))
goto fail;
if (read_32bitBE(0x00,streamFile) != 0x50415358) /* "PASX" */
goto fail;