summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-06-24 19:34:56 -0500
committerColin Noga <Tempus@chronometry.ca>2012-06-24 19:34:56 -0500
commit10fa535e98f3e1043b04895aaab2e916549fcf69 (patch)
tree7dda2c5658961801414f2eef9e9137efadd26d78 /tools
parentfd286ae035b52d3d78e234d9f91b6610ae30def6 (diff)
downloadkamek-10fa535e98f3e1043b04895aaab2e916549fcf69.tar.gz
kamek-10fa535e98f3e1043b04895aaab2e916549fcf69.zip
Lots of bug fixes, bowser improvements, summer sun hacks, JPN support, etc.
Diffstat (limited to 'tools')
-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')