mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-17 19:19:16 +01:00
Add .fsb.xen and key [Guitar Hero 5 (X360)]
This commit is contained in:
parent
e53b03c43e
commit
6bfe6e6b4a
@ -503,6 +503,7 @@ static const char* extension_list[] = {
|
||||
"xa30",
|
||||
"xag",
|
||||
"xau",
|
||||
"xen",
|
||||
"xma",
|
||||
"xma2",
|
||||
"xmu",
|
||||
|
@ -10,8 +10,10 @@ static STREAMFILE* setup_fsb_streamfile(STREAMFILE *streamFile, const uint8_t *
|
||||
VGMSTREAM * init_vgmstream_fsb_encrypted(STREAMFILE * streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
|
||||
/* check extensions */
|
||||
if ( !check_extensions(streamFile, "fsb") )
|
||||
/* checks */
|
||||
/* .fsb: standard
|
||||
* .fsb.xen: various Guitar Hero (X360) */
|
||||
if ( !check_extensions(streamFile, "fsb,xen") )
|
||||
goto fail;
|
||||
|
||||
/* ignore non-encrypted FSB */
|
||||
@ -150,6 +152,10 @@ static STREAMFILE* setup_fsb_streamfile(STREAMFILE *streamFile, const uint8_t *
|
||||
if (!new_streamFile) goto fail;
|
||||
temp_streamFile = new_streamFile;
|
||||
|
||||
new_streamFile = open_fakename_streamfile(temp_streamFile, NULL,"fsb");
|
||||
if (!new_streamFile) goto fail;
|
||||
temp_streamFile = new_streamFile;
|
||||
|
||||
return temp_streamFile;
|
||||
|
||||
fail:
|
||||
|
@ -72,6 +72,9 @@ static const uint8_t key_cro[] = { 0x67,0x68,0x66,0x78,0x68,0x73,0x6C,0x72,0x67,
|
||||
/* Monster Jam (PS2) */ //"truck/impact/carbody"
|
||||
static const uint8_t key_mtj[] = { 0x74,0x72,0x75,0x63,0x6B,0x2F,0x69,0x6D,0x70,0x61,0x63,0x74,0x2F,0x63,0x61,0x72,0x62,0x6F,0x64,0x79 };
|
||||
|
||||
/* Guitar Hero 5 (X360) */
|
||||
static const uint8_t key_gh5[] = { 0xFC,0xF9,0xE4,0xB3,0xF5,0x57,0x5C,0xA5,0xAC,0x13,0xEC,0x4A,0x43,0x19,0x58,0xEB,0x4E,0xF3,0x84,0x0B,0x8B,0x78,0xFA,0xFD,0xBB,0x18,0x46,0x7E,0x31,0xFB,0xD0 };
|
||||
|
||||
// Unknown:
|
||||
// - Battle: Los Angeles
|
||||
// - Guitar Hero: Warriors of Rock, DJ hero FSB
|
||||
@ -133,6 +136,7 @@ static const fsbkey_info fsbkey_list[] = {
|
||||
{ 1,1, sizeof(key_sc2),key_sc2 },//untested
|
||||
{ 1,0, sizeof(key_cro),key_cro },
|
||||
{ 0,1, sizeof(key_mtj),key_mtj },// FSB3
|
||||
{ 0,1, sizeof(key_gh5),key_gh5 },// FSB4
|
||||
|
||||
};
|
||||
static const int fsbkey_list_count = sizeof(fsbkey_list) / sizeof(fsbkey_list[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user