Permalink
Browse files

Merge pull request #479 from fzurita/check_zip_contents

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 0929d79c51f1770dcdd24a5530380a9e7afd489d
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/paulscode/android/mupen64plusae/task/CacheRomInfoService.java
@@ -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();
}

0 comments on commit 0929d79

Please sign in to comment.