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)