about summary refs log tree commit diff stats
path: root/tools/validator/main.cpp
blob: 1a72e9abc255156afb53b0413ebe1e25b82e9e77 (plain) (blame)
1
2
3
4
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.h
#include "godot_processor.h"
#include "human_processor.h"
#include "structs.h"
#include "validator.h"

namespace com::fourisland::lingo2_archipelago {
namespace {

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

  ProcessHumanData(mapdir, info);
  ProcessGodotData(repodir, info);

  ValidateCollectedInfo(info);
}

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

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

  std::string mapdir = argv[1];
  std::string repodir = argv[2];

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

  return 0;
}