mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-18 07:44:43 +01:00
some bug fixes
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@709 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
4ccc8282b0
commit
d1c2b01b98
@ -42,7 +42,10 @@ VGMSTREAM * init_vgmstream_thp(STREAMFILE *streamFile) {
|
|||||||
loop_flag = 0; // allways unloop
|
loop_flag = 0; // allways unloop
|
||||||
|
|
||||||
/* fill in the vital statistics */
|
/* fill in the vital statistics */
|
||||||
start_offset = read_32bitBE(0x28,streamFile);
|
if(thpVersion==0x10)
|
||||||
|
start_offset = read_32bitBE(0x24,streamFile);
|
||||||
|
else
|
||||||
|
start_offset = read_32bitBE(0x28,streamFile);
|
||||||
|
|
||||||
// Get info from the first block
|
// Get info from the first block
|
||||||
componentTypeOffset = read_32bitBE(0x20,streamFile);
|
componentTypeOffset = read_32bitBE(0x20,streamFile);
|
||||||
@ -81,6 +84,7 @@ VGMSTREAM * init_vgmstream_thp(STREAMFILE *streamFile) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_offset=read_32bitBE(0x28,streamFile);
|
||||||
vgmstream->thpNextFrameSize=read_32bitBE(0x18,streamFile);
|
vgmstream->thpNextFrameSize=read_32bitBE(0x18,streamFile);
|
||||||
thp_block_update(start_offset,vgmstream);
|
thp_block_update(start_offset,vgmstream);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user