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/validator.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/validator.cpp')
-rw-r--r-- | tools/validator/validator.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/validator/validator.cpp b/tools/validator/validator.cpp index f2ec280..6d01b7c 100644 --- a/tools/validator/validator.cpp +++ b/tools/validator/validator.cpp | |||
@@ -14,6 +14,14 @@ void ValidateMap(const std::string& map_name, const MapInfo& map_info) { | |||
14 | if (node_info.uses > 1) { | 14 | if (node_info.uses > 1) { |
15 | std::cout << "Map " << map_name << " node " << node_path | 15 | std::cout << "Map " << map_name << " node " << node_path |
16 | << " is used in multiple places." << std::endl; | 16 | << " is used in multiple places." << std::endl; |
17 | } else if (node_info.uses == 0) { | ||
18 | std::cout << "Map " << map_name << " node " << node_path | ||
19 | << " is not used." << std::endl; | ||
20 | } | ||
21 | |||
22 | if (!node_info.defined) { | ||
23 | std::cout << "Map " << map_name << " node " << node_path | ||
24 | << " is not defined in the game file." << std::endl; | ||
17 | } | 25 | } |
18 | } | 26 | } |
19 | } | 27 | } |