mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
fixed MIO header eof condition.
This commit is contained in:
parent
48b6747c4c
commit
1ef4c2f58f
@ -97,10 +97,10 @@ namespace GameRes.Formats.Entis
|
||||
throw new InvalidFormatException();
|
||||
m_stream_pos = 0x50 + section.Length;
|
||||
int header_size = (int)section.Length;
|
||||
while (header_size > 8)
|
||||
while (header_size > 0x10)
|
||||
{
|
||||
section = erif.ReadSection();
|
||||
header_size -= 8;
|
||||
header_size -= 0x10;
|
||||
if (section.Length <= 0 || section.Length > header_size)
|
||||
break;
|
||||
if ("SoundInf" == section.Id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user