Created
April 26, 2023 19:17
-
-
Save shinyquagsire23/77941f2b5cd351452022e0a0fd32e1bd to your computer and use it in GitHub Desktop.
Convert Wii(U) NANDs with ECC to NAND images w/o ECC.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
f = open("SLC.RAW", "rb") | |
f_out = open("SLC.partial.bin", "wb") | |
while True: | |
contents = f.read(0x840) | |
if len(contents) < 0x800: | |
break | |
unwrap = contents[:0x800] | |
f_out.write(unwrap) | |
f.close() | |
f_out.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment