summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-01-16 23:35:17 +0100
committerTreeki <treeki@gmail.com>2012-01-16 23:35:17 +0100
commitb4cedffe6562aecc3b7afe6c480427e05b8fa277 (patch)
treee1285b23607f75c596a8bf5abcf4fbe02e272a36 /tools
parente5e7ad18cd04dcbc376f87769937c1fb1f09f125 (diff)
downloadkamek-b4cedffe6562aecc3b7afe6c480427e05b8fa277.tar.gz
kamek-b4cedffe6562aecc3b7afe6c480427e05b8fa277.zip
mapfile_tool handles the two projects now
Diffstat (limited to '')
-rwxr-xr-xtools/mapfile_tool.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/mapfile_tool.py b/tools/mapfile_tool.py
index 4ebd288..540d3e0 100755
--- a/tools/mapfile_tool.py
+++ b/tools/mapfile_tool.py
@@ -252,11 +252,13 @@ def do_module(src, dest):
open(dest, 'w').write(yaml.dump(m))
-def do_project(f):
+def do_project(f, already_done):
proj = yaml.safe_load(open(f, 'r').read())
for m in proj['modules']:
- do_module(m.replace('processed/', ''), m)
+ if m not in already_done:
+ already_done.add(m)
+ do_module(m.replace('processed/', ''), m)
def main():
@@ -264,7 +266,9 @@ def main():
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_project('NewerProject.yaml')
+ already_done = set()
+ do_project('NewerProject.yaml', already_done)
+ do_project('NewerProjectKP.yaml', already_done)
do_module('anotherhax.yaml', 'processed/anotherhax.yaml')