Support chinese variant game version detection (not tested)
Also some minor improvements for preparation of installation features.
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import argparse
|
||||
import appdirs
|
||||
from pathlib import Path
|
||||
import constants
|
||||
|
||||
|
||||
class UI:
|
||||
@ -28,9 +30,13 @@ class UI:
|
||||
|
||||
|
||||
def main():
|
||||
default_dirs = appdirs.AppDirs(constants.APP_NAME, constants.APP_AUTHOR)
|
||||
parser = argparse.ArgumentParser(prog="worthless", description="A worthless launcher written in Python.")
|
||||
parser.add_argument("-D", "-d", "--dir", action="store", type=Path, default=Path.cwd(),
|
||||
parser.add_argument("-D", "--dir", action="store", type=Path, default=Path.cwd(),
|
||||
help="Specify the game directory (default current working directory)")
|
||||
parser.add_argument("-W", "--temporary-dir", action="store", type=Path, default=None,
|
||||
help="Specify the temporary directory (default {} and {})".format(default_dirs.user_data_dir,
|
||||
default_dirs.user_cache_dir))
|
||||
parser.add_argument("-S", "--install", action="store_true",
|
||||
help="Install the game (if not already installed, else do nothing)")
|
||||
parser.add_argument("-U", "--install-from-file", action="store_true",
|
||||
@ -40,7 +46,7 @@ def main():
|
||||
help="Patch the game (if not already patched, else do nothing)")
|
||||
parser.add_argument("-Sy", "--update", action="store_true",
|
||||
help="Update the game and specified voiceover pack only (or install if not found)")
|
||||
parser.add_argument("-Syu", "--update", action="store_true",
|
||||
parser.add_argument("-Syu", "--update-all", action="store_true",
|
||||
help="Update the game and all installed voiceover packs (or install if not found)")
|
||||
parser.add_argument("-Rs", "--remove", action="store_true", help="Remove the game (if installed)")
|
||||
parser.add_argument("-Rp", "--remove-patch", action="store_true", help="Revert the game patch (if patched)")
|
||||
|
||||
Reference in New Issue
Block a user