mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +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…
Reference in New Issue
Block a user