Support chinese variant game version detection (not tested)

Also some minor improvements for preparation of installation features.
This commit is contained in:
2022-02-16 02:55:19 +07:00
parent ad391a551c
commit 140e508dbf
3 changed files with 25 additions and 6 deletions

View File

@ -15,12 +15,12 @@ class Patcher:
if not data_dir:
self._appdirs = appdirs.AppDirs(constants.APP_NAME, constants.APP_AUTHOR)
self._patch_path = Path(self._appdirs.user_data_dir).joinpath("Patch")
self._temp_path = Path(self._appdirs.user_cache_dir)
self._temp_path = Path(self._appdirs.user_cache_dir).joinpath("Patcher")
else:
if not isinstance(data_dir, Path):
data_dir = Path(data_dir)
self._patch_path = data_dir.joinpath("Patch")
self._temp_path = data_dir.joinpath("Temp")
self._temp_path = data_dir.joinpath("Temp/Patcher")
@staticmethod
async def _get(url, **kwargs) -> aiohttp.ClientResponse: