From 7d371265580788be2b8c4e62bb522c6c310e5c70 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sat, 21 Jan 2023 18:56:46 +0100 Subject: [PATCH] Add .snb extension [Def Jam Rapstar (X360)] --- src/formats.c | 1 + src/meta/smp.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/formats.c b/src/formats.c index 9dc6f6f3..2843ce84 100644 --- a/src/formats.c +++ b/src/formats.c @@ -498,6 +498,7 @@ static const char* extension_list[] = { "smp", "smpl", //fake extension/header id for .v0/v1 (renamed, to be removed) "smv", + "snb", "snd", "snds", "sng", diff --git a/src/meta/smp.c b/src/meta/smp.c index ff567760..bde31878 100644 --- a/src/meta/smp.c +++ b/src/meta/smp.c @@ -15,10 +15,12 @@ VGMSTREAM* init_vgmstream_smp(STREAMFILE* sf) { if (version != 0x05 && /* Ghostbusters (PS2), Mushroom Men (Wii) */ version != 0x06 && /* Ghostbusters (PS3/X360/PC) */ version != 0x07 && /* Ghostbusters (PSP) */ - version != 0x08) /* Chandragupta (PS2/PSP), Street Cricket Champions 1/2 (PSP), Guilty Party (Wii) */ + version != 0x08) /* Def Jam Rapstar (X360), Chandragupta (PS2/PSP), Street Cricket Champions 1/2 (PSP), Guilty Party (Wii) */ goto fail; - if (!check_extensions(sf, "smp")) + /* .smp: common + * .snb: Def Jam Rapstar (X360)-few files */ + if (!check_extensions(sf, "smp,snb")) goto fail; /* 0x04~14: guid? */