mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-18 07:44:43 +01:00
Ubi SB: Added TMNT (X360/PC)
This commit is contained in:
parent
601eb6338c
commit
29238877cd
@ -967,6 +967,22 @@ static int config_sb_header_version(ubi_sb_header * sb, STREAMFILE *streamFile)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TMNT (2007)(PC) */
|
||||||
|
if (sb->version == 0x00190002 && sb->platform == UBI_PC) {
|
||||||
|
sb->section1_entry_size = 0x68;
|
||||||
|
sb->section2_entry_size = 0x74;
|
||||||
|
|
||||||
|
sb->external_flag_offset = 0x28;
|
||||||
|
sb->stream_id_offset = 0x2c;
|
||||||
|
sb->channels_offset = 0x3c;
|
||||||
|
sb->sample_rate_offset = 0x40;
|
||||||
|
sb->num_samples_offset = 0x48;
|
||||||
|
sb->stream_type_offset = 0x5c;
|
||||||
|
sb->extra_name_offset = 0x58;
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* TMNT (2007)(PS2) */
|
/* TMNT (2007)(PS2) */
|
||||||
if (sb->version == 0x00190002 && sb->platform == UBI_PS2) {
|
if (sb->version == 0x00190002 && sb->platform == UBI_PS2) {
|
||||||
sb->section1_entry_size = 0x48;
|
sb->section1_entry_size = 0x48;
|
||||||
@ -998,6 +1014,24 @@ static int config_sb_header_version(ubi_sb_header * sb, STREAMFILE *streamFile)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TMNT (2007)(X360) */
|
||||||
|
if (sb->version == 0x00190002 && sb->platform == UBI_X360) {
|
||||||
|
sb->section1_entry_size = 0x68;
|
||||||
|
sb->section2_entry_size = 0x70;
|
||||||
|
|
||||||
|
sb->external_flag_offset = 0x28;
|
||||||
|
sb->samples_flag_offset = 0x30;
|
||||||
|
sb->channels_offset = 0x3c;
|
||||||
|
sb->sample_rate_offset = 0x40;
|
||||||
|
sb->num_samples_offset = 0x48;
|
||||||
|
sb->num_samples_offset2 = 0x50;
|
||||||
|
sb->stream_type_offset = 0x5c;
|
||||||
|
sb->extra_name_offset = 0x58;
|
||||||
|
sb->xma_pointer_offset = 0x6c;
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* Surf's Up (2007)(PC) */
|
/* Surf's Up (2007)(PC) */
|
||||||
if (sb->version == 0x00190005 && sb->platform == UBI_PC) {
|
if (sb->version == 0x00190005 && sb->platform == UBI_PC) {
|
||||||
sb->section1_entry_size = 0x68;
|
sb->section1_entry_size = 0x68;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user