Commit Graph

9 Commits

Author SHA1 Message Date
9e00e58938
fix: catch TypeError 2022-08-24 09:51:31 +07:00
04dc922230
feat: support pre-downloading game & voicepacks 2022-08-23 17:02:20 +07:00
a5659f7ff3
refactor: convert all task-intensive functions to async.
chore: rename gui.py to cli.py
fix: internal downloader can resume download now.
feat: add verify_game, verify_from_pkg_version, clear_cache to installer.py.
feat: add clear_cache to patcher.py.
fix: linux now check for pkexec before executing it.
fix: add get_name to voicepack.py, latest.py, diff.py to get name from path (since the developer didn't set a name to these files in the sdk url)
chore: remove deprecation message in read_version_from_config in installer.py
misc: use chunk from self._download_chunk instead of being hardcoded to 8192.
fix: is_telemetry_blocked will only wait 15s for a connection.
chore: move appdirs to constants.py

This commit refactor almost all functions to be compatible with asyncio, also restructured CLI to use asyncio.run on main function instead of executing it randomly.
Also prioritize the use of asyncio.gather, sometimes making tasks faster
2022-06-25 01:13:47 +07:00
fd00e8b51d
Add support for hdiffpatch files
Game now apply update properly (hopefully)

Signed-off-by: tretrauit <tretrauit@gmail.com>
2022-03-31 02:09:33 +07:00
da3ee30ab1
Wrap game resource info from the server
Also add function to get the diff archive (for faster updating)

Download function soon, although I can't make sure that the download function will work properly (like pause, resume download etc.)
2022-02-16 22:18:56 +07:00
81fbdec553
Remove message about QQ unimplemented. 2022-02-16 02:58:48 +07:00
c22918673b
Support chinese variant, QQ object in launcher and some code optimizations 2022-02-16 00:49:33 +07:00
048a7ac9d0
Update tests 2022-01-29 23:32:38 +07:00
a7ddd0c49a
Object-oriented programming
All launcher functions are now return an object instead of a dict
2022-01-29 23:25:03 +07:00