summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTharo <17233964+Thar0@users.noreply.github.com>2024-12-22 23:48:13 +0000
committerGitHub <noreply@github.com>2024-12-22 15:48:13 -0800
commit06b06ab50759d1b92fe0a3510453a11454d9409c (patch)
treec4a14c616087f4cf55b1900fd8b2380c71b598fb /tools
parent187e75c4417f3a2b5373be4610adcf836dba93a1 (diff)
Check in makerom files (#1758)
* Check in makerom files * Fix disasm for asm files in src
Diffstat (limited to 'tools')
-rwxr-xr-xtools/disasm/disasm.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/disasm/disasm.py b/tools/disasm/disasm.py
index f4b5c3e18..1d6955652 100755
--- a/tools/disasm/disasm.py
+++ b/tools/disasm/disasm.py
@@ -118,9 +118,12 @@ def discard_decomped_files(files_spec, include_files):
.split("$(BUILD_DIR)/", 1)[1]
.replace(".o", ".c")[:-1]
)
- with open(root_path / last_line, "r") as f2:
- if "GLOBAL_ASM" in f2.read():
- include = True
+ if os.path.exists(root_path / last_line):
+ with open(root_path / last_line, "r") as f2:
+ if "GLOBAL_ASM" in f2.read():
+ include = True
+ else:
+ assert os.path.exists(root_path / last_line.replace(".c", ".s"))
include |= force_include
if include:
@@ -131,8 +134,7 @@ def discard_decomped_files(files_spec, include_files):
continue
if included:
f[4] = new_files
-
- new_spec.append(f)
+ new_spec.append(f)
return new_spec