Skip to content
Snippets Groups Projects
Commit 248e9baa authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

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

These were regressions introduced in f0ae5eba.
parent 3a9cf0d0
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment