diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-18 12:56:13 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-18 12:56:13 -0400 |
commit | 1ac21d4a67ddd211fda841aa6e368bc2cf52a3d6 (patch) | |
tree | bdcf651c156c27982e37bddb7cb7e0b09aa90d5a /tools/validator/main.cpp | |
parent | 15b8794bbe80be0bcf1f482674455efe002cec2c (diff) | |
download | lingo2-archipelago-1ac21d4a67ddd211fda841aa6e368bc2cf52a3d6.tar.gz lingo2-archipelago-1ac21d4a67ddd211fda841aa6e368bc2cf52a3d6.tar.bz2 lingo2-archipelago-1ac21d4a67ddd211fda841aa6e368bc2cf52a3d6.zip |
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.
Diffstat (limited to 'tools/validator/main.cpp')
-rw-r--r-- | tools/validator/main.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
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 @@ | |||
1 | #include "godot_processor.h" | ||
1 | #include "human_processor.h" | 2 | #include "human_processor.h" |
2 | #include "structs.h" | 3 | #include "structs.h" |
3 | #include "validator.h" | 4 | #include "validator.h" |
@@ -5,10 +6,11 @@ | |||
5 | namespace com::fourisland::lingo2_archipelago { | 6 | namespace com::fourisland::lingo2_archipelago { |
6 | namespace { | 7 | namespace { |
7 | 8 | ||
8 | void Run(const std::string& mapdir) { | 9 | void Run(const std::string& mapdir, const std::string& repodir) { |
9 | CollectedInfo info; | 10 | CollectedInfo info; |
10 | 11 | ||
11 | ProcessHumanData(mapdir, info); | 12 | ProcessHumanData(mapdir, info); |
13 | ProcessGodotData(repodir, info); | ||
12 | 14 | ||
13 | ValidateCollectedInfo(info); | 15 | ValidateCollectedInfo(info); |
14 | } | 16 | } |
@@ -17,15 +19,16 @@ void Run(const std::string& mapdir) { | |||
17 | } // namespace com::fourisland::lingo2_archipelago | 19 | } // namespace com::fourisland::lingo2_archipelago |
18 | 20 | ||
19 | int main(int argc, char** argv) { | 21 | int main(int argc, char** argv) { |
20 | if (argc != 2) { | 22 | if (argc != 3) { |
21 | std::cout << "Incorrect argument count." << std::endl; | 23 | std::cout << "Incorrect argument count." << std::endl; |
22 | std::cout << "Usage: validator [path to map directory]" << std::endl; | 24 | std::cout << "Usage: validator [path to map directory] [path to Lingo 2 repository]" << std::endl; |
23 | return 1; | 25 | return 1; |
24 | } | 26 | } |
25 | 27 | ||
26 | std::string mapdir = argv[1]; | 28 | std::string mapdir = argv[1]; |
29 | std::string repodir = argv[2]; | ||
27 | 30 | ||
28 | com::fourisland::lingo2_archipelago::Run(mapdir); | 31 | com::fourisland::lingo2_archipelago::Run(mapdir, repodir); |
29 | 32 | ||
30 | return 0; | 33 | return 0; |
31 | } | 34 | } |