feat: add -Swp option

perf: tar.extractall wrapped in asyncio.to_thread
This commit is contained in:
2022-06-27 04:09:47 +07:00
parent aa147792e6
commit efc2abf858
3 changed files with 8 additions and 3 deletions

View File

@ -274,6 +274,8 @@ async def main():
help="Update the game and specified voiceover pack only (or install if not found)")
parser.add_argument("-Sw", "--download-game", action="store_true",
help="Download the full game to the temporary directory")
parser.add_argument("-Swp", "--download-patch", action="store_true",
help="Download/Update the game patch to the temporary directory")
parser.add_argument("-Swv", "--download-voiceover", action="store", type=str,
help="Download the full voiceover to the temporary directory")
parser.add_argument("-Syw", "--download-game-update", action="store", type=str, default="",
@ -330,6 +332,9 @@ async def main():
if args.download_game:
await ui.download_game()
if args.download_patch:
await ui.download_patch()
if args.download_voiceover:
await ui.download_voiceover(args.download_voiceover)