Relaxed XMI IFF processing a bit

CQTexperiment
Chris Moeller 2015-04-21 21:52:55 -07:00
parent 43d1c88d8c
commit f8db303293
1 changed files with 9 additions and 3 deletions

View File

@ -150,9 +150,15 @@ 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 ); {
first_chunk = false; p_out.m_chunks.push_back( chunk );
first_chunk = false;
}
else if ( first_chunk )
return false;
else
break;
} }
return true; return true;
} }