added --utage switch to diva quest
This commit is contained in:
parent
17dc031b9e
commit
c811af1d08
3 changed files with 21 additions and 12 deletions
14
divatool.py
14
divatool.py
|
|
@ -117,13 +117,16 @@ def main():
|
|||
metavar="<command>", title="subcommand", dest="subcommand"
|
||||
)
|
||||
parser_diva_quest = parser_diva_subparsers.add_parser(
|
||||
"quest", help="Generate quest JSON files"
|
||||
"quest", help="Generate quest JSON files", parents=[global_flag_parser],
|
||||
)
|
||||
parser_diva_quest.add_argument(
|
||||
"INPUT",
|
||||
help="Directory of databases containing Quest*.db and ResourceEntry.db",
|
||||
type=str,
|
||||
)
|
||||
parser_diva_quest.add_argument(
|
||||
"--utage", help="Directory of Utage folders and files.", type=str, default=None,
|
||||
)
|
||||
parser_diva_quest.add_argument(
|
||||
"OLD", help="Directory with old quest files", nargs="?", type=str, default="."
|
||||
)
|
||||
|
|
@ -182,7 +185,14 @@ def main():
|
|||
raise FileNotFoundError(args.INPUT)
|
||||
elif args.command == "diva":
|
||||
if args.subcommand == "quest":
|
||||
diva.quest.update_missions(args.INPUT, args.OLD, LANGUAGES)
|
||||
if not args.utage:
|
||||
diva.quest.update_missions(
|
||||
args.INPUT, args.OLD, LANGUAGES, args.is_global
|
||||
)
|
||||
else:
|
||||
diva.quest.update_missions(
|
||||
args.INPUT, args.OLD, LANGUAGES, args.is_global, utage_in=args.utage
|
||||
)
|
||||
elif args.command == "xdudata":
|
||||
if args.subcommand == "update":
|
||||
# add the tools folder to PATH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue