diff options
author | Colin Noga <Tempus@chronometry.ca> | 2012-07-07 23:36:44 -0500 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2012-07-07 23:36:44 -0500 |
commit | 13d1b791d14695dab43033d171bb6f161bd04fc5 (patch) | |
tree | 492cb8a25e070805ec4073f0c32a9cc593156577 /tools/mapfile_tool.py | |
parent | c6ad18e5f0cf1b627d850fa3101a8c78648ff452 (diff) | |
parent | 613e30a894cddcdc11c8da140bae35090247c8ec (diff) | |
download | kamek-13d1b791d14695dab43033d171bb6f161bd04fc5.tar.gz kamek-13d1b791d14695dab43033d171bb6f161bd04fc5.zip |
merge
Diffstat (limited to 'tools/mapfile_tool.py')
-rwxr-xr-x | tools/mapfile_tool.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/mapfile_tool.py b/tools/mapfile_tool.py index 3556d0d..41eff5a 100755 --- a/tools/mapfile_tool.py +++ b/tools/mapfile_tool.py @@ -9,8 +9,16 @@ def make_hex_offset(offs): return '0x%08X' % offs
def fix_offs_pal_v2(offs):
- # do this later
- return 0xdeadbeef
+ if offs >= 0x807685A0 and offs <= 0x807AAA70:
+ return offs + 0x40
+
+ if offs >= 0x807AAA74 and offs <= 0x809907FF:
+ return offs + 0x10
+
+ if offs >= 0x80990800:
+ return offs + 0x20
+
+ return offs
def fix_offs_ntsc_v1(offs):
# .text section
@@ -192,7 +200,7 @@ import yaml original = 'pal'
fix_for = {
- 'pal2': fix_offs_ntsc_v1,
+ 'pal2': fix_offs_pal_v2,
'ntsc': fix_offs_ntsc_v1,
'ntsc2': fix_offs_ntsc_v2,
'jpn': fix_offs_jpn_v1
|