Skip to content

Commit

Permalink
Merge pull request #479 from fzurita/check_zip_contents
Browse files Browse the repository at this point in the history
Fix issue that allowed any extracted file to be considered a ROM
  • Loading branch information
xperia64 committed Oct 7, 2015
2 parents 74c3934 + 41cfc89 commit 0929d79
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -181,7 +181,12 @@ else if( header.isZip && mSearchZips )
if( mbStopped ) break;
if( extractedFile != null )
{
cacheFile( extractedFile, database, config, file );
RomHeader extractedHeader = new RomHeader( extractedFile );
if(extractedHeader.isValid)
{
cacheFile( extractedFile, database, config, file );
}

extractedFile.delete();
}

Expand Down

0 comments on commit 0929d79

Please sign in to comment.