summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtools/mapfile_tool.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/mapfile_tool.py b/tools/mapfile_tool.py
index 540d3e0..92e53ad 100755
--- a/tools/mapfile_tool.py
+++ b/tools/mapfile_tool.py
@@ -185,6 +185,7 @@ def fix_offs_jpn_v1(offs):
if offs >= 0x8010F430 and offs <= 0xDEADBEEF:
return offs - 0x330
+ return offs
import yaml
@@ -193,7 +194,8 @@ original = 'pal'
fix_for = {
'pal2': fix_offs_ntsc_v1,
'ntsc': fix_offs_ntsc_v1,
- 'ntsc2': fix_offs_ntsc_v2
+ 'ntsc2': fix_offs_ntsc_v2,
+ 'jpn': fix_offs_jpn_v1
}
def do_mapfile(src, dest, fix_offset):
@@ -265,10 +267,12 @@ def main():
do_mapfile('kamek_pal.x', 'kamek_pal2.x', fix_offs_pal_v2)
do_mapfile('kamek_pal.x', 'kamek_ntsc.x', fix_offs_ntsc_v1)
do_mapfile('kamek_pal.x', 'kamek_ntsc2.x', fix_offs_ntsc_v2)
+ do_mapfile('kamek_pal.x', 'kamek_jpn.x', fix_offs_jpn_v1)
already_done = set()
do_project('NewerProject.yaml', already_done)
do_project('NewerProjectKP.yaml', already_done)
+ do_project('SummerSun.yaml', already_done)
do_module('anotherhax.yaml', 'processed/anotherhax.yaml')