diff --git a/vollerei/genshin/launcher/game.py b/vollerei/genshin/launcher/game.py index d5b4d67..985b5d6 100644 --- a/vollerei/genshin/launcher/game.py +++ b/vollerei/genshin/launcher/game.py @@ -224,7 +224,7 @@ class Game(GameABC): version_ptr = 0 correct = True try: - with self.data_folder().joinpath("data.unity3d").open("rb") as f: + with data_file.open("rb") as f: f.seek(4000) for byte in f.read(10000): match byte: diff --git a/vollerei/hsr/launcher/game.py b/vollerei/hsr/launcher/game.py index 21aaacd..7defe07 100644 --- a/vollerei/hsr/launcher/game.py +++ b/vollerei/hsr/launcher/game.py @@ -240,7 +240,7 @@ class Game(GameABC): version_ptr = 0 correct = True try: - with self.data_folder().joinpath("data.unity3d").open("rb") as f: + with data_file.open("rb") as f: f.seek(0x7D0) # 2000 in decimal for byte in f.read(10000): match byte: