diff options
Diffstat (limited to 'tools/validator/main.cpp')
| -rw-r--r-- | tools/validator/main.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
| diff --git a/tools/validator/main.cpp b/tools/validator/main.cpp new file mode 100644 index 0000000..af9842b --- /dev/null +++ b/tools/validator/main.cpp | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #include "human_processor.h" | ||
| 2 | #include "structs.h" | ||
| 3 | #include "validator.h" | ||
| 4 | |||
| 5 | namespace com::fourisland::lingo2_archipelago { | ||
| 6 | namespace { | ||
| 7 | |||
| 8 | void Run(const std::string& mapdir) { | ||
| 9 | CollectedInfo info; | ||
| 10 | |||
| 11 | ProcessHumanData(mapdir, info); | ||
| 12 | |||
| 13 | ValidateCollectedInfo(info); | ||
| 14 | } | ||
| 15 | |||
| 16 | } // namespace | ||
| 17 | } // namespace com::fourisland::lingo2_archipelago | ||
| 18 | |||
| 19 | int main(int argc, char** argv) { | ||
| 20 | if (argc != 2) { | ||
| 21 | std::cout << "Incorrect argument count." << std::endl; | ||
| 22 | std::cout << "Usage: validator [path to map directory]" << std::endl; | ||
| 23 | return 1; | ||
| 24 | } | ||
| 25 | |||
| 26 | std::string mapdir = argv[1]; | ||
| 27 | |||
| 28 | com::fourisland::lingo2_archipelago::Run(mapdir); | ||
| 29 | |||
| 30 | return 0; | ||
| 31 | } | ||
