mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
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.
20 lines
534 B
C++
20 lines
534 B
C++
#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
|