mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 11:03:51 +00:00
Moves the two disk-byte audit handlers (--info-zone-bytes,
--info-project-bytes) out of main.cpp into a new
cli_info_bytes.{hpp,cpp} module. Both categorize files by
extension into open / proprietary / derived buckets — the
project-wide variant is the headline metric for tracking
the open-format migration's progress against the .m2/.wmo/
.blp/.dbc baseline.
main.cpp shrinks by 244 lines (7,939 to 7,695). Both --json
output modes preserved for machine-readable reports.
23 lines
728 B
C++
23 lines
728 B
C++
#pragma once
|
|
|
|
namespace wowee {
|
|
namespace editor {
|
|
namespace cli {
|
|
|
|
// Dispatch the disk-byte audit handlers — per-file size
|
|
// breakdowns grouped by category (open vs proprietary vs
|
|
// derived). Useful for capacity planning and tracking the
|
|
// open-format migration's progress against the proprietary
|
|
// .m2 / .wmo / .blp / .dbc baseline.
|
|
// --info-zone-bytes drill into one zone
|
|
// --info-project-bytes project-wide audit + open/prop split
|
|
//
|
|
// Both support an optional trailing `--json` flag for
|
|
// machine-readable reports.
|
|
//
|
|
// Returns true if matched; outRc holds the exit code.
|
|
bool handleInfoBytes(int& i, int argc, char** argv, int& outRc);
|
|
|
|
} // namespace cli
|
|
} // namespace editor
|
|
} // namespace wowee
|