Added support for custom download directories

This commit is contained in:
2025-04-22 21:46:15 -04:00
parent bcb86bc4b0
commit a3d8dc7887
13 changed files with 1030 additions and 467 deletions

View File

@@ -132,6 +132,8 @@ def run_nus_download_wii(out_folder: pathlib.Path, tid: str, version: str, pack_
else:
progress_callback.emit(" - No patches could be applied! Is this a stub IOS?")
title = ios_patcher.dump()
# Append "-PATCHED" to the end of the WAD file name to make it clear that it was modified.
wad_file_name = wad_file_name[:-4] + "-PATCHED" + wad_file_name[-4:]
# Have libWiiPy dump the WAD, and write that data out.
version_dir.joinpath(wad_file_name).write_bytes(title.dump_wad())
progress_callback.emit("Download complete!")