mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
refactor(editor): extract format inspection handlers into cli_format_info.cpp
Moves the proprietary-format inspection commands out of main.cpp into their own translation unit. Each reads a Blizzard-format file and prints its structure: --info-png --info-blp --info-m2 --info-wmo --info-adt --info-jsondbc main.cpp drops 18,198 → 17,766 lines (-432). Behavior verified by re-running --info-png on a generated noise texture.
This commit is contained in:
parent
9890429e3c
commit
08e7d9c689
4 changed files with 524 additions and 436 deletions
18
tools/editor/cli_format_info.hpp
Normal file
18
tools/editor/cli_format_info.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
namespace wowee {
|
||||
namespace editor {
|
||||
namespace cli {
|
||||
|
||||
// Dispatch the proprietary-format inspection handlers — each
|
||||
// reads a Blizzard-format file and prints its structure:
|
||||
// --info-png --info-blp
|
||||
// --info-m2 --info-wmo
|
||||
// --info-adt --info-jsondbc
|
||||
//
|
||||
// Returns true if matched; outRc holds the exit code.
|
||||
bool handleFormatInfo(int& i, int argc, char** argv, int& outRc);
|
||||
|
||||
} // namespace cli
|
||||
} // namespace editor
|
||||
} // namespace wowee
|
||||
Loading…
Add table
Add a link
Reference in a new issue