Skip to content
Snippets Groups Projects
Verified Commit 32b916d4 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

ppu: don't do run a full ppudump while only looking for PPU file version

parent ed3deee4
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ class PpuFile(File):
ppu_version = f.read(3).decode('ascii', errors='ignore')
if not hasattr(PpuFile, 'ppu_version'):
try:
subprocess.check_output(['ppudump', file.path], shell=False, stderr=subprocess.STDOUT)
subprocess.check_output(['ppudump', '-vh', file.path], shell=False, stderr=subprocess.STDOUT)
PpuFile.ppu_version = ppu_version
except subprocess.CalledProcessError as e:
error = e.output.decode('utf-8', errors='ignore')
......
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