From c3111aaf7a628e1c7b3dda8e8b49ac9805ae2c84 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Tue, 2 Apr 2024 18:11:45 -0400 Subject: [PATCH] Minor adjustments, now fully working with latest libWiiPy --- modules/wad.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/wad.py b/modules/wad.py index c5eafca..a7c55fb 100644 --- a/modules/wad.py +++ b/modules/wad.py @@ -98,10 +98,12 @@ def pack_wad_from_folder(in_folder, out_file): for content in range(len(content_list)): dec_content = open(content_list[content], "rb").read() try: + # Attempt to load the content into the correct index. title.content.load_content(dec_content, index, title_key) break except ValueError: - print("Match not found, trying again...") + # Wasn't the right content, so try again. + pass out_file.write(title.dump_wad())