diff options
| author | Shrey Ratna <shreyratna4445@hotmail.com> | 2026-11-22 16:20:17 +0530 |
|---|---|---|
| committer | Shrey Ratna <shreyratna4445@hotmail.com> | 2026-11-22 16:20:17 +0530 |
| commit | e9e02e7e2383e170e02f89b11befb99c067b1b77 (patch) | |
| tree | b9bee801026acc8ef3b6e7fccd2f29820e7dafaf /runtime/src | |
| parent | f85582e23d4ab9e19acbf694358f137d6b8531b1 (diff) | |
vertex_types, instance_lists: --json can't overwrite an input archive
Both tools write their --json report after the whole scan, with no check
on the path. Given one of the input .rpf archives, the archive was
replaced by the report and the run exited 0; a directory, or a file in a
folder that doesn't exist, ended the scan in a traceback.
Now, before the scan, a --json that is a directory or the same file as an
input archive (for vertex_types also one found under an input folder) is
one error line with exit 2. The report's folder is created before
writing, and a write that still fails is one "cannot write" line (the
summary is already on stdout). Same checks as navmesh_decode's
same_report_path/_make_parent and bvh_index's same_output_path.
Synthetic archives only, no game files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src')
0 files changed, 0 insertions, 0 deletions