Compare commits

..

No commits in common. "68a598410b74615a3cd4a4e4948661facb916ba9" and "99c099e3e3fd80270187f80b302adb1a2d7c4d31" have entirely different histories.

2 changed files with 2 additions and 10 deletions

View File

@ -82,10 +82,8 @@ class HSR:
if not ask("Do you still want to patch?"):
print("Patching aborted.")
return
print("Checking telemetry hosts...", end=" ")
telemetry_list = self._patcher.check_telemetry()
if telemetry_list:
print("FOUND")
print("Telemetry hosts found: ")
for host in telemetry_list:
print(f" - {host}")
@ -102,8 +100,6 @@ class HSR:
print("Cannot continue, please block them manually then try again.")
return
print("Continuing anyway...")
else:
print("OK")
if not self.__update_patch():
return
match self._patcher.patch_type:

View File

@ -3,7 +3,7 @@ from os import PathLike
from pathlib import Path
from enum import Enum
from vollerei.abc.launcher.game import GameABC
from vollerei.hsr.constants import MD5SUMS
from vollerei.hsr.constants import md5sums
class GameChannel(Enum):
@ -12,10 +12,6 @@ class GameChannel(Enum):
class Game(GameABC):
"""
Manages the game installation
"""
def __init__(self, path: PathLike = None):
self._path: Path | None = Path(path) if path else None
self._version_override: tuple[int, int, int] | None = None
@ -170,7 +166,7 @@ class Game(GameABC):
"""
version = self._version_override or self.get_version()
if version == (1, 0, 5):
for channel, v in MD5SUMS["1.0.5"].values():
for channel, v in md5sums["1.0.5"].values():
for file, md5sum in v.values():
if (
md5(self._path.joinpath(file).read_bytes()).hexdigest()