Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delta Patch For 1.1 #76

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)