mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
refactor(editor): extract 10 diff handlers into cli_diff.cpp
Moves the file-comparison handlers out of main.cpp into their own translation unit: --diff-wcp --diff-zone --diff-glb --diff-wom --diff-wob --diff-whm --diff-woc --diff-jsondbc --diff-extract --diff-checksum main.cpp drops 15,653 → 14,732 lines (-921). One build error during extraction (missing #include for NpcSpawner / ObjectPlacer / QuestEditor used by --diff-zone) caught by build and fixed.
This commit is contained in:
parent
887dce647e
commit
3967c8de57
4 changed files with 1043 additions and 926 deletions
20
tools/editor/cli_diff.hpp
Normal file
20
tools/editor/cli_diff.hpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
namespace wowee {
|
||||
namespace editor {
|
||||
namespace cli {
|
||||
|
||||
// Dispatch the diff handlers — each compares two files of the
|
||||
// same format and reports differences:
|
||||
// --diff-wcp --diff-zone
|
||||
// --diff-glb --diff-wom
|
||||
// --diff-wob --diff-whm
|
||||
// --diff-woc --diff-jsondbc
|
||||
// --diff-extract --diff-checksum
|
||||
//
|
||||
// Returns true if matched; outRc holds the exit code.
|
||||
bool handleDiff(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