about summary refs log tree commit diff stats
path: root/tools/validator/validator.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-10-19 11:25:51 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-10-19 11:25:51 -0400
commit4c1dc83759d15b7f9f8aaddf580d2147f43fb845 (patch)
tree0cf3de102bee1837c7022f7e7df5e8979af54f96 /tools/validator/validator.cpp
parent8ea8aef094f73ff6d16f209267c4037399a9a3e7 (diff)
downloadlingo2-archipelago-4c1dc83759d15b7f9f8aaddf580d2147f43fb845.tar.gz
lingo2-archipelago-4c1dc83759d15b7f9f8aaddf580d2147f43fb845.tar.bz2
lingo2-archipelago-4c1dc83759d15b7f9f8aaddf580d2147f43fb845.zip
Annotate "worldport entrances" HEAD main
Diffstat (limited to 'tools/validator/validator.cpp')
-rw-r--r--tools/validator/validator.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/validator/validator.cpp b/tools/validator/validator.cpp index 93efdc6..c048bab 100644 --- a/tools/validator/validator.cpp +++ b/tools/validator/validator.cpp
@@ -69,6 +69,11 @@ class Validator {
69 << " is not defined in the game file." << std::endl; 69 << " is not defined in the game file." << std::endl;
70 } 70 }
71 } 71 }
72
73 if (map_info.malformed_worldport_entrance) {
74 std::cout << "The worldport entrance for map " << map_name
75 << " is malformed." << std::endl;
76 }
72 } 77 }
73 78
74 void ValidateRoom(const RoomIdentifier& room_identifier, 79 void ValidateRoom(const RoomIdentifier& room_identifier,
@@ -253,6 +258,10 @@ class Validator {
253 std::cout << " CONNECTION " << connection.ShortDebugString() 258 std::cout << " CONNECTION " << connection.ShortDebugString()
254 << std::endl; 259 << std::endl;
255 } 260 }
261
262 for (const std::string& map_name : port_info.map_worldport_entrances) {
263 std::cout << " MAP (worldport_entrance) " << map_name << std::endl;
264 }
256 } else if (port_info.definitions.size() > 1) { 265 } else if (port_info.definitions.size() > 1) {
257 std::cout << "Port " << port_identifier.ShortDebugString() 266 std::cout << "Port " << port_identifier.ShortDebugString()
258 << " was defined multiple times." << std::endl; 267 << " was defined multiple times." << std::endl;
@@ -283,8 +292,7 @@ class Validator {
283 } 292 }
284 if (!port.has_rotation()) { 293 if (!port.has_rotation()) {
285 std::cout << "Port " << port_identifier.ShortDebugString() 294 std::cout << "Port " << port_identifier.ShortDebugString()
286 << " is shuffleable and missing a rotation." 295 << " is shuffleable and missing a rotation." << std::endl;
287 << std::endl;
288 } 296 }
289 } 297 }
290 } 298 }