Skip to content

Commit

Permalink
Update .gitignore.
Browse files Browse the repository at this point in the history
Bring in delta patch to patch 1.1 down to 1.0.

Update patcher to patch 1.1.
  • Loading branch information
PhlexPlexico committed Oct 5, 2023
1 parent 131cce3 commit 3d60fe2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ oldcode/loader/build
*.smdh
*.pyc
*.ips
!basecode1.1.ips
*.zar
source/patch_symbols.hpp
.DS_Store
Binary file added code/basecode1.1.ips
Binary file not shown.
15 changes: 14 additions & 1 deletion code/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,17 @@
ips += b'EOF'

with open("basecode.ips", 'wb') as patchFile:
patchFile.write(ips)
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)

0 comments on commit 3d60fe2

Please sign in to comment.