From 8d33ed1c06ec85d1f1a3d6dd9370c402e798ebda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82odziejski?= Date: Fri, 15 Nov 2024 14:27:40 +0100 Subject: [PATCH] WINTERMUTE: Fix to make work in 64bit system --- engines/wintermute/decompile_script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/wintermute/decompile_script.py b/engines/wintermute/decompile_script.py index 17e12fb6..42b841a5 100755 --- a/engines/wintermute/decompile_script.py +++ b/engines/wintermute/decompile_script.py @@ -138,10 +138,10 @@ class WinterMuteDecompiler: def __init__(self, data): self.data = data - self.offsets = unpack("LLLLLLLL",data[:32]) + self.offsets = unpack("IIIIIIII",data[:32]) def read_int(self): - result = unpack("L",self.data[self.ptr:self.ptr+4])[0] + result = unpack("I",self.data[self.ptr:self.ptr+4])[0] self.ptr += 4 return result