Commit Graph

9 Commits

Author SHA1 Message Date
tretrauit e55d6cafd6
updater: do not delete directory
I took a look at deletefiles.txt again and realized that they're all files, so we don't need to delete the entire directory

Signed-off-by: tretrauit <tretrauit@gmail.com>
2022-11-03 17:44:54 +07:00
tretrauit 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
tretrauit 659befc8f8
Change timestamp check (prevent false positive) 2022-02-18 21:30:24 +07:00
tretrauit bd515c73cd
Xdelta3 workaround (because xdelta3-python doesn't work) 2022-02-18 21:04:44 +07:00
tretrauit 4359a43771
Fix syntax error, bump to 1.2.1 2022-02-18 20:15:29 +07:00
tretrauit 5a492c912c
WIP game patcher
Now worthless can patch the game using xdelta3-python
2022-02-18 20:09:03 +07:00
tretrauit ad391a551c
Read version from game file (thanks to An Anime Game Launcher project)
Basically I copied their method of doing that and their regex pattern.
2022-02-16 01:58:45 +07:00
tretrauit c22918673b
Support chinese variant, QQ object in launcher and some code optimizations 2022-02-16 00:49:33 +07:00
tretrauit a7ddd0c49a
Object-oriented programming
All launcher functions are now return an object instead of a dict
2022-01-29 23:25:03 +07:00