diff options
Diffstat (limited to '')
-rw-r--r-- | src/levelinfo_old.cpp (renamed from src/levelinfo.cpp) | 0 | ||||
-rw-r--r-- | src/levelinfo_old.h (renamed from src/levelinfo.h) | 0 | ||||
-rwxr-xr-x | tools/mapfile_tool.py | 10 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/levelinfo.cpp b/src/levelinfo_old.cpp index ec65350..ec65350 100644 --- a/src/levelinfo.cpp +++ b/src/levelinfo_old.cpp diff --git a/src/levelinfo.h b/src/levelinfo_old.h index 8e1e916..8e1e916 100644 --- a/src/levelinfo.h +++ b/src/levelinfo_old.h 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')
|