diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-07-31 19:02:36 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-07-31 19:02:36 -0400 |
| commit | fa73747971cabe2e0b3c7c4d56d998f4d5904b4a (patch) | |
| tree | d64ce9315cd74821692747356ba38d5b1c3085c0 | |
| parent | d46b64f9cba1c3561d504a753dcbd77c6ba796f7 (diff) | |
Fix paths in debug_map_diff.py
| -rwxr-xr-x | tools/utilities/debug_map_diff.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/utilities/debug_map_diff.py b/tools/utilities/debug_map_diff.py index c90ee61b..eb07f9be 100755 --- a/tools/utilities/debug_map_diff.py +++ b/tools/utilities/debug_map_diff.py @@ -18,9 +18,9 @@ arg_parse = argparse.ArgumentParser() arg_parse.add_argument("object_name", help="Name of the object to compare, e.g. d_a_bridge or d_a_npc_fa1") args = arg_parse.parse_args() target_object_name: str = args.object_name -assert "/" not in target_object_name and "." not in target_object_name, "The object name should not contain slashes or dots" +assert not re.search(r"[/\\.]", target_object_name), "The object name should not contain slashes or dots" -debug_maps_root_path = Path("orig/D44J01/files/maps") +debug_maps_root_path = Path("orig") / "D44J01" / "files" / "maps" decomp_root_path = Path(".") retcode = subprocess.call(["python", "configure.py", "--version", "D44J01", "--debug", "--map", "--non-matching"], cwd=decomp_root_path) @@ -43,8 +43,8 @@ else: del target_map_path_dol del target_map_path_rel -base_map_path_dol = decomp_root_path / "build/D44J01/framework.elf.MAP" -base_map_path_rel = decomp_root_path / f"build/D44J01/{target_object_name}/{target_object_name}.plf.MAP" +base_map_path_dol = decomp_root_path / "build" / "D44J01" / "framework.elf.MAP" +base_map_path_rel = decomp_root_path / "build" / "D44J01" / target_object_name / f"{target_object_name}.plf.MAP" if str(base_map_path_rel) in all_ninja_outputs: base_is_rel = True base_map_path = base_map_path_rel |
