mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-15 02:57:38 +01:00
Add some Ubi SB0 [Surf's Up (PC)]
This commit is contained in:
parent
73933aae95
commit
8a935c8c12
@ -119,6 +119,7 @@ VGMSTREAM * init_vgmstream_ubi_sb(STREAMFILE *streamFile) {
|
||||
start_offset = sb.main_size + sb.section1_size + sb.section2_size + sb.extra_size + sb.section3_size;
|
||||
start_offset += sb.stream_offset;
|
||||
}
|
||||
//;VGM_LOG("start offset=%lx, external=%i\n", start_offset, sb.is_external);
|
||||
|
||||
|
||||
/* build the VGMSTREAM */
|
||||
@ -886,5 +887,21 @@ static int config_sb_header_version(ubi_sb_header * sb, STREAMFILE *streamFile)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Surf's Up (2007)(PC) */
|
||||
if (sb->version == 0x00190005 && is_sb0) {
|
||||
sb->section1_entry_size = 0x68;
|
||||
sb->section2_entry_size = 0x74;
|
||||
|
||||
sb->external_flag_offset = 0x28; /* maybe 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;
|
||||
|
||||
sb->has_extra_name_flag = 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user