From acfb50b34a85b5cb60e743824663d3fe8af78e26 Mon Sep 17 00:00:00 2001 From: vg Date: Tue, 5 Mar 2024 00:16:05 +0100 Subject: git-sync on dita --- gamechestcli/gamechest/runners/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] -- cgit v1.2.3