From 10d5f3f208e03706e51d2be2ab9d44df21201866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=E1=BA=BF=20H=C6=B0ng?= Date: Mon, 3 Mar 2025 17:04:05 +0700 Subject: [PATCH] fix(common): merge zip file too --- vollerei/common/functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vollerei/common/functions.py b/vollerei/common/functions.py index d1e2e17..02a9613 100644 --- a/vollerei/common/functions.py +++ b/vollerei/common/functions.py @@ -229,11 +229,11 @@ def install_archive(game: GameABC, archive_file: Path | IOBase) -> None: target_archive = None if archive_path.suffix == ".001": archive_path_merged = archive_path.with_suffix("") + target_archive = multivolumefile.open(archive_path_merged, mode='rb') if archive_path_merged.suffix == ".zip": # .zip split archive - archive = zipfile.ZipFile(archive_path, "r") + archive = zipfile.ZipFile(target_archive, "r") else: - target_archive = multivolumefile.open(archive_path_merged, mode='rb') archive = py7zr.SevenZipFile(target_archive, "r") else: archive = _open_archive(archive_file)