Skip to content

Instantly share code, notes, and snippets.

@shinyquagsire23
Created April 26, 2023 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinyquagsire23/77941f2b5cd351452022e0a0fd32e1bd to your computer and use it in GitHub Desktop.
Save shinyquagsire23/77941f2b5cd351452022e0a0fd32e1bd to your computer and use it in GitHub Desktop.
Convert Wii(U) NANDs with ECC to NAND images w/o ECC.
#!/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