upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorNWX10 <179748639+NWX10@users.noreply.github.com>2026-11-22 00:48:43 +0300
committerNWX10 <179748639+NWX10@users.noreply.github.com>2026-11-22 00:48:43 +0300
commit8cce07b9171349af5e6d80d01cc0a8f24e466330 (patch)
tree53e6b4a4db0e6b274c72d15a36f4ce602862de58 /runtime/src/main.cpp
parent4e390e0871d7265e629b51aca8ff99a15a6a6845 (diff)
shader_disasm.py: scan blobs too short for the header instead of crashing the run
A blob shorter than 0xC4 bytes made code_range read the code offset past the end and raise struct.error. The error came out of ex.map and stopped the whole run, so make_game.py failed at the same blob on every rerun. Such a blob now goes to the s_endpgm scan like any other header miss and is counted as "scan failed" or "no s_endpgm". --jobs and --limit now must be at least 1 (--jobs 0 made ThreadPoolExecutor raise, --limit -1 dropped the last file). A source with no .fssm files, or one that doesn't exist, ends with an ERROR line instead of an IndexError or FileNotFoundError traceback. Tests: tests/test_shader_disasm.py, with a fake llvm-mc (no GPU, no game data). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions