From 68feebc78e330e91f6fa8b1818507251d44dbe13 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Sun, 16 May 2021 00:19:20 +0000 Subject: [PATCH] Fix missing ctypes definition for compression in Lz77 module. --- bemani/protocol/lz77.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bemani/protocol/lz77.py b/bemani/protocol/lz77.py index 0b7aef6..de82f25 100644 --- a/bemani/protocol/lz77.py +++ b/bemani/protocol/lz77.py @@ -13,6 +13,8 @@ try: clib = ctypes.cdll.LoadLibrary(os.path.join(clib_path, files[0])) clib.decompress.argtypes = (ctypes.c_char_p, ctypes.c_int, ctypes.c_char_p, ctypes.c_int) clib.decompress.restype = ctypes.c_int + clib.compress.argtypes = (ctypes.c_char_p, ctypes.c_int, ctypes.c_char_p, ctypes.c_int) + clib.compress.restype = ctypes.c_int except Exception: clib = None