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