From 3062a739d6ec1643cea0d77a8514387915feda2b Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Sun, 4 Aug 2024 22:13:02 -0400 Subject: [PATCH] Output when a WAD fails to install during bulk EmuNAND installs --- modules/title/emunand.py | 7 +++++-- modules/title/info.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/title/emunand.py b/modules/title/emunand.py index f9f367f..4c82a9c 100644 --- a/modules/title/emunand.py +++ b/modules/title/emunand.py @@ -133,8 +133,11 @@ def handle_emunand_title(args): for wad in wad_files: title = libWiiPy.title.Title() title.load_wad(open(wad, "rb").read()) - _do_wad_install(emunand_struct, title, skip_hash) - wad_count += 1 + try: + _do_wad_install(emunand_struct, title, skip_hash) + wad_count += 1 + except ValueError: + print(f"WAD {wad} could not be installed!") print(f"Successfully installed {wad_count} WAD(s) to EmuNAND!") else: title = libWiiPy.title.Title() diff --git a/modules/title/info.py b/modules/title/info.py index fed2226..d84d95e 100644 --- a/modules/title/info.py +++ b/modules/title/info.py @@ -71,7 +71,7 @@ def _print_ticket_info(ticket: libWiiPy.title.Ticket): key = "Common" case 1: key = "Korean" - case 3: + case 2: key = "vWii" case _: key = "Unknown (Likely Common)"