diff options
-rw-r--r-- | gamechestcli/gamechest/runners/extract.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gamechestcli/gamechest/runners/extract.py b/gamechestcli/gamechest/runners/extract.py index 8101e02..6f13d89 100644 --- a/gamechestcli/gamechest/runners/extract.py +++ b/gamechestcli/gamechest/runners/extract.py @@ -39,7 +39,7 @@ class Extract(RunnerBase): uncompress_command_to_use = [lzip_command, '--decompress'] first_word_magic = 0 with open(src, 'rb') as stream: - first_word_magic = struct.unpack('>L', stream.read(4)) + first_word_magic = struct.unpack('>L', stream.read(4))[0] if first_word_magic == 0x4c5a4950: # lzip magic if os.path.exists(plzip_command): uncompress_command_to_use = [plzip_command, '--decompress'] |