Support chinese variant game version detection (not tested)
Also some minor improvements for preparation of installation features.
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user