summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
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')