From 7707a64733ecaf9b68cf0f704a539c10ea4fa52c 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:00:40 +0700 Subject: [PATCH] fix(common): bruh --- vollerei/common/functions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vollerei/common/functions.py b/vollerei/common/functions.py index 5192290..d1e2e17 100644 --- a/vollerei/common/functions.py +++ b/vollerei/common/functions.py @@ -228,12 +228,12 @@ def install_archive(game: GameABC, archive_file: Path | IOBase) -> None: archive_path = Path(archive_file) target_archive = None if archive_path.suffix == ".001": - archive_path = archive_path.with_suffix("") - if archive_path.suffix == ".zip": + archive_path_merged = archive_path.with_suffix("") + if archive_path_merged.suffix == ".zip": # .zip split archive archive = zipfile.ZipFile(archive_path, "r") else: - target_archive = multivolumefile.open(archive_path, mode='rb') + target_archive = multivolumefile.open(archive_path_merged, mode='rb') archive = py7zr.SevenZipFile(target_archive, "r") else: archive = _open_archive(archive_file)