mirror of
https://github.com/NinjaCheetah/WiiPy.git
synced 2025-04-27 05:41:01 -04:00
Fix bug in nus.py where --version didn't actually download a specific version for TMDs
This commit is contained in:
parent
1612d2ecb9
commit
af9b639a6b
@ -212,9 +212,13 @@ def handle_nus_tmd(args):
|
|||||||
else:
|
else:
|
||||||
version = None
|
version = None
|
||||||
|
|
||||||
# Use the supplied output path if one was specified, otherwise generate one using the Title ID.
|
# Use the supplied output path if one was specified, otherwise generate one using the Title ID. If a version has
|
||||||
|
# been specified, append the version to the end of the path as well.
|
||||||
if args.output is None:
|
if args.output is None:
|
||||||
output_path = pathlib.Path(tid + ".tmd")
|
if version is not None:
|
||||||
|
output_path = pathlib.Path(f"{tid}.tmd.{version}")
|
||||||
|
else:
|
||||||
|
output_path = pathlib.Path(f"{tid}.tmd")
|
||||||
else:
|
else:
|
||||||
output_path = pathlib.Path(args.output)
|
output_path = pathlib.Path(args.output)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user