diff options
author | vg <vgm+dev@devys.org> | 2024-03-05 00:16:05 +0100 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2024-03-05 00:16:05 +0100 |
commit | acfb50b34a85b5cb60e743824663d3fe8af78e26 (patch) | |
tree | 5b7a80dabbc41d855b653cab4906ff5c14eba4c4 /gamechestcli | |
parent | 54449a71321300566370bf3a5a67508e02f5a3c6 (diff) | |
download | gamechest-acfb50b34a85b5cb60e743824663d3fe8af78e26.tar.gz gamechest-acfb50b34a85b5cb60e743824663d3fe8af78e26.tar.bz2 gamechest-acfb50b34a85b5cb60e743824663d3fe8af78e26.zip |
git-sync on dita
Diffstat (limited to 'gamechestcli')
-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'] |