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;
|
z_stream stream;
|
||||||
int zerr;
|
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 */
|
/* make sure we don't need a newer mechanism */
|
||||||
if (zip->header.version_needed > 0x14)
|
if (zip->header.version_needed > 0x14)
|
||||||
return ZIPERR_UNSUPPORTED;
|
return ZIPERR_UNSUPPORTED;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* reset the stream */
|
/* reset the stream */
|
||||||
memset(&stream, 0, sizeof(stream));
|
memset(&stream, 0, sizeof(stream));
|
||||||
|
|
|
@ -96,10 +96,7 @@ FilesystemNode FilesystemNode::getParent() const
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
AbstractFSNode* node = _realNode->getParent();
|
AbstractFSNode* node = _realNode->getParent();
|
||||||
if (node == 0)
|
return (node == 0) ? *this : FilesystemNode(node);
|
||||||
return *this;
|
|
||||||
else
|
|
||||||
return FilesystemNode(node);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
Loading…
Reference in New Issue