diff --git a/.gitignore b/.gitignore index 972ca8b5..9d261c2a 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ oldcode/loader/build *.smdh *.pyc *.ips +!basecode1.1.ips *.zar source/patch_symbols.hpp .DS_Store \ No newline at end of file diff --git a/code/basecode1.1.ips b/code/basecode1.1.ips new file mode 100644 index 00000000..f266c623 Binary files /dev/null and b/code/basecode1.1.ips differ diff --git a/code/patch.py b/code/patch.py index 513eb93c..dc0850a1 100644 --- a/code/patch.py +++ b/code/patch.py @@ -52,4 +52,17 @@ ips += b'EOF' with open("basecode.ips", 'wb') as patchFile: - patchFile.write(ips) \ No newline at end of file + patchFile.write(ips) + +# Write basecode1.1ips as well. +# Ignore first 5 bytes since we don't need P A T C H +ips = ips[5:] +rawDeltaBytes = b'' +with open("deltapatch.ips", "rb") as f: + # Ignore last 3 bytes that are E O F + rawDeltaBytes = f.read() +rawDeltaBytes = rawDeltaBytes[:-3] +rawDeltaBytes += ips + +with open("basecode1.1.ips", "wb") as newPatchFile: + newPatchFile.write(rawDeltaBytes) \ No newline at end of file