mirror of
https://github.com/NinjaCheetah/WiiPy.git
synced 2025-04-26 13:21:01 -04:00
Minor adjustments, now fully working with latest libWiiPy
This commit is contained in:
parent
5257c3ae68
commit
c3111aaf7a
@ -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())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user