Relaxed XMI IFF processing a bit
parent
43d1c88d8c
commit
f8db303293
|
@ -150,10 +150,16 @@ static bool read_iff_stream( std::vector<uint8_t> const& p_file, iff_stream & p_
|
||||||
while ( it != end )
|
while ( it != end )
|
||||||
{
|
{
|
||||||
iff_chunk chunk;
|
iff_chunk chunk;
|
||||||
if ( !read_iff_chunk( it, end, chunk, first_chunk ) ) return false;
|
if ( read_iff_chunk( it, end, chunk, first_chunk ) )
|
||||||
|
{
|
||||||
p_out.m_chunks.push_back( chunk );
|
p_out.m_chunks.push_back( chunk );
|
||||||
first_chunk = false;
|
first_chunk = false;
|
||||||
}
|
}
|
||||||
|
else if ( first_chunk )
|
||||||
|
return false;
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue