diff options
| author | bobcatchris <83428450+bobcatchris@users.noreply.github.com> | 2026-11-21 23:41:39 -0600 |
|---|---|---|
| committer | bobcatchris <83428450+bobcatchris@users.noreply.github.com> | 2026-11-21 23:41:39 -0600 |
| commit | 0fe954580847f02f2ef4b9a37da9cb00bcece3ad (patch) | |
| tree | d50d99a2960493164718c5d4ae696912c7900882 /runtime/src/main.cpp | |
| parent | dcd8ecf10b138566d567020562b7afd853a89024 (diff) | |
tile_probe: no candidate layout is an error, not a silent success
When every candidate was rejected (a sample shorter than 16 rows of blocks at
any of the widths) main() printed nothing, wrote no preview and returned 0, so
a script saw a successful run with no result. The empty-file and bad-offset
paths already exit 1, and tools/swizzle_search.py treats the same outcome as
one ERROR line, so match it: name the input and offset, exit 1.
Tests: an 8-byte and a 4 KiB blob, with and without --out, must exit 1, print
one line naming the file, and leave no preview; the 16 KiB case still probes
and exits 0.
Negative control on main: both new subtests fail (exit 0, no message). With
the change: 5/5. No game data.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions