Line 49:
Line 49:
import Wii
import Wii
Wii.NUS.download(0x000000010000002).dumpFile("SystemMenu-latest.wad")
Wii.NUS.download(0x000000010000002).dumpFile("SystemMenu-latest.wad")
+
</source>
+
+
Downloads System Menu version 289, and replaces content index 0 with the file "patch.bin", changes the title id to 1-3, then saves to the WAD "patched.wad":
+
<source lang="python">
+
import Wii
+
sysmenu = Wii.NUS.download(0x000000010000002)
+
sysmenu[0] = open("patch.bin", "rb").read()
+
sysmenu.tmd.setTitleID(0x0000000100000003)
+
sysmenu.tik.setTitleID(0x0000000100000003)
+
sysmenu.dumpFile("patched.wad")
</source>
</source>