mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-31 12:23:44 +01:00
Merge pull request #627 from NicknineTheEagle/ubi
Ubi SB: Fixed section3 parsing in SMx format
This commit is contained in:
commit
9da8b93f56
@ -1885,7 +1885,7 @@ static int parse_offsets(ubi_sb_header * sb, STREAMFILE *streamFile) {
|
||||
uint32_t table2_num = read_32bit(offset + 0x10, streamFile);
|
||||
|
||||
for (j = 0; j < table_num; j++) {
|
||||
int index = read_32bit(table_offset + 0x08 * j + 0x00, streamFile) & 0x7FFFFFFF;
|
||||
int index = read_32bit(table_offset + 0x08 * j + 0x00, streamFile) & 0x3FFFFFFF;
|
||||
|
||||
if (index == sb->header_index) {
|
||||
sb->stream_offset = read_32bit(table_offset + 0x08 * j + 0x04, streamFile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user