diff options
author | Treeki <treeki@gmail.com> | 2012-07-08 02:46:59 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-07-08 02:46:59 +0200 |
commit | 613e30a894cddcdc11c8da140bae35090247c8ec (patch) | |
tree | 274cbfccc9e1795d13e1f2fe69d172d4b469877a /tools/mapfile_tool.py | |
parent | 1c3e5a0b1c62829d78960c4d99e4928ccf73625f (diff) | |
download | kamek-613e30a894cddcdc11c8da140bae35090247c8ec.tar.gz kamek-613e30a894cddcdc11c8da140bae35090247c8ec.zip |
added PALv2, made Kamek link all regions at the same time
Diffstat (limited to '')
-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
|