diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2024-12-22 23:48:13 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-22 15:48:13 -0800 |
| commit | 06b06ab50759d1b92fe0a3510453a11454d9409c (patch) | |
| tree | c4a14c616087f4cf55b1900fd8b2380c71b598fb /tools | |
| parent | 187e75c4417f3a2b5373be4610adcf836dba93a1 (diff) | |
Check in makerom files (#1758)
* Check in makerom files
* Fix disasm for asm files in src
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/disasm/disasm.py | 12 |
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 |
