diff options
| author | liang-kai-shui <1677378668@qq.com> | 2026-11-22 18:44:21 +0800 |
|---|---|---|
| committer | liang-kai-shui <1677378668@qq.com> | 2026-11-22 18:44:21 +0800 |
| commit | ddaf648e5d89c62d632547414345ea13ff4eb020 (patch) | |
| tree | 4b251fafa06fbe2ea59efd4a93622a5090b3fad9 /runtime/src/thread_stacks.cpp | |
| parent | f85582e23d4ab9e19acbf694358f137d6b8531b1 (diff) | |
gamedata_index: report paths create their folder and cannot overwrite the input
--json and --csv opened their target after the scan, so a missing folder
ended the run in a FileNotFoundError and lost the result, and a path that
resolved to <carve>/index.json (or the target archive) replaced the input
with the report. Copy navmesh_decode.py's pattern: _make_parent() before
each write, and reject report paths that same_report_path() matches
against the target, <target>/index.json and --carve-dir/index.json.
New tests/test_gamedata_index_report_paths.py covers both missing-folder
writes, both input aliases, the csv/json same-path refusal and a normal
report; main's tool fails four of the six as the negative control.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions