From af9b639a6beee9898cea845e7d7248af91e3b7e9 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Sun, 20 Oct 2024 22:07:07 -0400 Subject: [PATCH] Fix bug in nus.py where --version didn't actually download a specific version for TMDs --- modules/title/nus.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/title/nus.py b/modules/title/nus.py index d13a04a..e125af0 100644 --- a/modules/title/nus.py +++ b/modules/title/nus.py @@ -212,9 +212,13 @@ def handle_nus_tmd(args): else: 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: - 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: output_path = pathlib.Path(args.output)