1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-02-11 07:55:22 +00:00
oot/tools/patch_ique_kaleido_reloc.py
Tharo c028db03b4
Finish matching ique-cn (#2451)
* git subrepo clone git@github.com:Thar0/com-plugin.git tools/com-plugin

subrepo:
  subdir:   "tools/com-plugin"
  merged:   "e8543312d"
upstream:
  origin:   "git@github.com:Thar0/com-plugin.git"
  branch:   "main"
  commit:   "e8543312d"
git-subrepo:
  version:  "0.4.6"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "110b9eb"

* ique-cn OK

* Review suggestions

* Most suggestions

* git subrepo pull tools/com-plugin

subrepo:
  subdir:   "tools/com-plugin"
  merged:   "81595ed1c"
upstream:
  origin:   "git@github.com:Thar0/com-plugin.git"
  branch:   "main"
  commit:   "81595ed1c"
git-subrepo:
  version:  "0.4.6"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "110b9eb"

* Fix other versions
2025-02-04 06:55:04 -05:00

13 lines
359 B
Python

#!/usr/bin/env python3
#
# Patches kaleido bss size in relocations for matching builds.
#
import sys
with open(sys.argv[1], "r+") as reloc_sfile:
contents = reloc_sfile.read()
contents = contents.replace(".word _ovl_kaleido_scopeSegmentBssSize\n", ".word 0x10\n")
reloc_sfile.seek(0)
reloc_sfile.write(contents)
reloc_sfile.truncate()