Minor adjustments, now fully working with latest libWiiPy

This commit is contained in:
Campbell 2024-04-02 18:11:45 -04:00
parent 5257c3ae68
commit c3111aaf7a
Signed by: NinjaCheetah
GPG Key ID: B547958AF96ED344

View File

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