mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-11 03:23:51 +00:00
feat(editor): add --audit-tree to flag corrupted/misnamed Wowee files
Walks a directory recursively and groups problems by category: too-small (file under 16 bytes — can't hold a header), unknown-magic (.w* file whose magic is not in the format table), ext-mismatch (extension says one format but the magic says another — usually from a renamed file), magic-no-ext (file with recognized Wowee magic but no .w* extension), and header-trunc (magic matches but the rest of the header is truncated). Returns exit 1 if any issue is found, so it composes into shell pipelines and CI checks. JSON sidecar via --json. Catches the kinds of breakage that --summary-dir silently rolls into the "unrecognized" bucket — a renamed .wsrg file masquerading as .wsct shows up cleanly here but would otherwise be invisible. Like every cross-format utility this reuses cli_format_table.cpp, so new formats are audited automatically. CLI flag count 906 -> 907.
This commit is contained in:
parent
b8dc28d704
commit
824b6ebf53
6 changed files with 297 additions and 1 deletions
|
|
@ -94,6 +94,7 @@
|
|||
#include "cli_lfg_catalog.hpp"
|
||||
#include "cli_catalog_grep.hpp"
|
||||
#include "cli_diff_headers.hpp"
|
||||
#include "cli_audit_tree.hpp"
|
||||
#include "cli_macros_catalog.hpp"
|
||||
#include "cli_char_features_catalog.hpp"
|
||||
#include "cli_pvp_catalog.hpp"
|
||||
|
|
@ -242,6 +243,7 @@ constexpr DispatchFn kDispatchTable[] = {
|
|||
handleLFGCatalog,
|
||||
handleCatalogGrep,
|
||||
handleDiffHeaders,
|
||||
handleAuditTree,
|
||||
handleMacrosCatalog,
|
||||
handleCharFeaturesCatalog,
|
||||
handlePVPCatalog,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue