Output when a WAD fails to install during bulk EmuNAND installs

This commit is contained in:
Campbell 2024-08-04 22:13:02 -04:00
parent bc1b6623bb
commit 3062a739d6
Signed by: NinjaCheetah
GPG Key ID: B547958AF96ED344
2 changed files with 6 additions and 3 deletions

View File

@ -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()

View File

@ -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)"