mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-25 07:20:10 +01:00
EA ABK fix
This commit is contained in:
parent
dc1a98361f
commit
b48c31723c
@ -178,6 +178,11 @@ VGMSTREAM * init_vgmstream_ea_abk(STREAMFILE *streamFile) {
|
||||
num_sounds = read_32bitLE(table_offset, streamFile);
|
||||
for (k = 0; k < num_sounds; k++) {
|
||||
entry_offset = table_offset + 0x04 + 0x0C * k;
|
||||
sound_type = read_8bit(entry_offset, streamFile);
|
||||
|
||||
/* some of these dummies pointing at sound 0 in BNK */
|
||||
if (sound_type == 0x00 && read_32bitLE(entry_offset + 0x04, streamFile) == 0)
|
||||
continue;
|
||||
|
||||
total_sounds++;
|
||||
if (target_stream == total_sounds)
|
||||
|
Loading…
Reference in New Issue
Block a user