mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-09 18:43:51 +00:00
Moves the six WoWee Content Pack (.wcp) handlers out of main.cpp: --list-wcp --info-wcp --info-pack-budget --info-pack-tree --pack-wcp --unpack-wcp All six defer to wowee::editor::ContentPacker for actual pack I/O; the handlers just parse args and format output, so the extraction has no behavioral impact on the pack format itself. main.cpp drops 17,766 → 17,505 lines (-261). Behavior verified by re-running --info-wcp on a missing file (same error message).
20 lines
540 B
C++
20 lines
540 B
C++
#pragma once
|
|
|
|
namespace wowee {
|
|
namespace editor {
|
|
namespace cli {
|
|
|
|
// Dispatch the WoWee Content Pack (.wcp) handlers:
|
|
// --list-wcp --info-wcp
|
|
// --info-pack-budget --info-pack-tree
|
|
// --pack-wcp --unpack-wcp
|
|
//
|
|
// All defer to wowee::editor::ContentPacker for actual pack
|
|
// I/O; the handlers just parse args and format output.
|
|
//
|
|
// Returns true if matched; outRc holds the exit code.
|
|
bool handlePack(int& i, int argc, char** argv, int& outRc);
|
|
|
|
} // namespace cli
|
|
} // namespace editor
|
|
} // namespace wowee
|