mirror of https://github.com/stella-emu/stella.git
Fixed regression in ZIP file handling compared to version 3.7.5;
the check for the required ZIP version was being too aggressive, and causing some ZIP files to not open at all. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2716 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
42b0c26e3c
commit
beb76ca378
|
@ -579,9 +579,13 @@ ZipHandler::zip_error
|
|||
z_stream stream;
|
||||
int zerr;
|
||||
|
||||
#if 0
|
||||
// TODO - check newer versions of ZIP, and determine why this specific
|
||||
// version (0x14) is important
|
||||
/* make sure we don't need a newer mechanism */
|
||||
if (zip->header.version_needed > 0x14)
|
||||
return ZIPERR_UNSUPPORTED;
|
||||
#endif
|
||||
|
||||
/* reset the stream */
|
||||
memset(&stream, 0, sizeof(stream));
|
||||
|
|
|
@ -96,10 +96,7 @@ FilesystemNode FilesystemNode::getParent() const
|
|||
return *this;
|
||||
|
||||
AbstractFSNode* node = _realNode->getParent();
|
||||
if (node == 0)
|
||||
return *this;
|
||||
else
|
||||
return FilesystemNode(node);
|
||||
return (node == 0) ? *this : FilesystemNode(node);
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
Loading…
Reference in New Issue