Commit 248e9baa authored by Chris Lamb's avatar Chris Lamb 💬

comparators.ppu: Fix inverted logic and invalid reference to "file".

These were regressions introduced in f0ae5eba.
parent 3a9cf0d0
......@@ -66,10 +66,10 @@ class PpuFile(File):
if not super().recognizes(file):
return False
if file.file_header.startswith(b'PPU'):
if not file.file_header.startswith(b'PPU'):
return False
ppu_version = f.file_header[3:6].decode('ascii', errors='ignore')
ppu_version = file.file_header[3:6].decode('ascii', errors='ignore')
if not hasattr(PpuFile, 'ppu_version'):
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment