summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2024-03-05 00:16:05 +0100
committervg <vgm+dev@devys.org>2024-03-05 00:16:05 +0100
commitacfb50b34a85b5cb60e743824663d3fe8af78e26 (patch)
tree5b7a80dabbc41d855b653cab4906ff5c14eba4c4
parent54449a71321300566370bf3a5a67508e02f5a3c6 (diff)
downloadgamechest-acfb50b34a85b5cb60e743824663d3fe8af78e26.tar.gz
gamechest-acfb50b34a85b5cb60e743824663d3fe8af78e26.tar.bz2
gamechest-acfb50b34a85b5cb60e743824663d3fe8af78e26.zip
git-sync on dita
-rw-r--r--gamechestcli/gamechest/runners/extract.py2
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']