You've already forked Diddy-Kong-Racing
mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-03-10 11:36:09 -07:00
* 3 new matches * Fix arrays * Get llcvt compiling finally * Finsh 2 more libultra files * Match func_80022E18 * Match func_8001BF20 * func_8001CD28 NON_MATCHING * Match func_80026C14 * Match func_8005FF40 * Match func_80061A00 * Match func_8005FCD0 * Update score * Fix NON_EQUIVALENT builds
16 lines
349 B
Python
16 lines
349 B
Python
import os
|
|
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()
|