mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
15 lines
339 B
Python
15 lines
339 B
Python
import sys
|
|||
|
|
|
||
|
|
"""
|
||
|
|
patchmips3 - overwrites a byte in an -mips3 object file which makes it identify
|
||
|
|
as a -mips2 object file, which allows it to be linked with the rest of the
|
||
|
|
project.
|
||
|
|
|
||
|
|
This is required become some libultra files must be compiled with -mips3.
|
||
|
|
"""
|
||
|
|
|
||
|
|
fd = open(sys.argv[1], 'rb+')
|
||
|
|
fd.seek(0x24)
|
||
|
|
fd.write(bytes([0x10]))
|
||
|
|
fd.close()
|