Read version from game file (thanks to An Anime Game Launcher project)

Basically I copied their method of doing that and their regex pattern.
This commit is contained in:
2022-02-16 01:58:45 +07:00
parent 2b811d99b9
commit ad391a551c
3 changed files with 25 additions and 18 deletions

View File

@ -18,7 +18,7 @@ class Patcher:
self._temp_path = Path(self._appdirs.user_cache_dir)
else:
if not isinstance(data_dir, Path):
override_data_dir = Path(data_dir)
data_dir = Path(data_dir)
self._patch_path = data_dir.joinpath("Patch")
self._temp_path = data_dir.joinpath("Temp")