From 1ac21d4a67ddd211fda841aa6e368bc2cf52a3d6 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 18 Aug 2025 12:56:13 -0400 Subject: Validate that nodes in game files are used You can now also list out nodes that you are explicitly not mapping out. The current state of the repo does produce some warnings when the validator is run and they're either endings, paintings that I'm not sure what to do with yet, and weird proxy stuff I'm not sure how to handle yet. --- tools/validator/main.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tools/validator/main.cpp') diff --git a/tools/validator/main.cpp b/tools/validator/main.cpp index af9842b..1a72e9a 100644 --- a/tools/validator/main.cpp +++ b/tools/validator/main.cpp @@ -1,3 +1,4 @@ +#include "godot_processor.h" #include "human_processor.h" #include "structs.h" #include "validator.h" @@ -5,10 +6,11 @@ namespace com::fourisland::lingo2_archipelago { namespace { -void Run(const std::string& mapdir) { +void Run(const std::string& mapdir, const std::string& repodir) { CollectedInfo info; ProcessHumanData(mapdir, info); + ProcessGodotData(repodir, info); ValidateCollectedInfo(info); } @@ -17,15 +19,16 @@ void Run(const std::string& mapdir) { } // namespace com::fourisland::lingo2_archipelago int main(int argc, char** argv) { - if (argc != 2) { + if (argc != 3) { std::cout << "Incorrect argument count." << std::endl; - std::cout << "Usage: validator [path to map directory]" << 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); + com::fourisland::lingo2_archipelago::Run(mapdir, repodir); return 0; } -- cgit 1.4.1