summary refs log tree commit diff stats
path: root/tools/validator/main.cpp
blob: af9842b00df0a7341999fea916b6c18b390045f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "human_processor.h"
#include "structs.h"
#include "validator.h"

namespace com::fourisland::lingo2_archipelago {
namespace {

void Run(const std::string& mapdir) {
  CollectedInfo info;

  ProcessHumanData(mapdir, info);

  ValidateCollectedInfo(info);
}

}  // namespace
}  // namespace com::fourisland::lingo2_archipelago

int main(int argc, char** argv) {
  if (argc != 2) {
    std::cout << "Incorrect argument count." << std::endl;
    std::cout << "Usage: validator [path to map directory]" << std::endl;
    return 1;
  }

  std::string mapdir = argv[1];

  com::fourisland::lingo2_archipelago::Run(mapdir);

  return 0;
}