mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 10:33:22 +01:00
Python's zipfile only decodes Stored, Deflate, bzip2, LZMA and (via the inflate64 patch) Deflate64. A zip written with PPMd, zstd, xz, AES or the legacy Implode family raised NotImplementedError, which the scanner turned into "hash the container instead". Those hashes match no ROM database, so the ROM could never be verified against Hasheous. The zip reader now opens each eligible entry once up front. If zipfile has no decoder for any of them, the whole archive is read through the existing 7zz-backed reader, which handles every method the zip spec allows. Falling back for the whole archive rather than per member keeps a stored .cue next to a PPMd .bin from being streamed twice into the composite hash. Excluded members do not influence the decision. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>