diff options
Diffstat (limited to 'tools/validator/validator.cpp')
| -rw-r--r-- | tools/validator/validator.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
| diff --git a/tools/validator/validator.cpp b/tools/validator/validator.cpp index 5f8e0ba..a99447a 100644 --- a/tools/validator/validator.cpp +++ b/tools/validator/validator.cpp | |||
| @@ -269,6 +269,10 @@ class Validator { | |||
| 269 | for (const std::string& map_name : port_info.map_worldport_entrances) { | 269 | for (const std::string& map_name : port_info.map_worldport_entrances) { |
| 270 | std::cout << " MAP (worldport_entrance) " << map_name << std::endl; | 270 | std::cout << " MAP (worldport_entrance) " << map_name << std::endl; |
| 271 | } | 271 | } |
| 272 | |||
| 273 | if (port_info.has_id) { | ||
| 274 | std::cout << " An AP ID is present." << std::endl; | ||
| 275 | } | ||
| 272 | } else if (port_info.definitions.size() > 1) { | 276 | } else if (port_info.definitions.size() > 1) { |
| 273 | std::cout << "Port " << port_identifier.ShortDebugString() | 277 | std::cout << "Port " << port_identifier.ShortDebugString() |
| 274 | << " was defined multiple times." << std::endl; | 278 | << " was defined multiple times." << std::endl; |
| @@ -301,6 +305,15 @@ class Validator { | |||
| 301 | std::cout << "Port " << port_identifier.ShortDebugString() | 305 | std::cout << "Port " << port_identifier.ShortDebugString() |
| 302 | << " is shuffleable and missing a rotation." << std::endl; | 306 | << " is shuffleable and missing a rotation." << std::endl; |
| 303 | } | 307 | } |
| 308 | if (!port_info.has_id) { | ||
| 309 | std::cout << "Port " << port_identifier.ShortDebugString() | ||
| 310 | << " is missing an AP ID." << std::endl; | ||
| 311 | } | ||
| 312 | } else { | ||
| 313 | if (port_info.has_id) { | ||
| 314 | std::cout << "Port " << port_identifier.ShortDebugString() | ||
| 315 | << " should not have an AP ID." << std::endl; | ||
| 316 | } | ||
| 304 | } | 317 | } |
| 305 | } | 318 | } |
| 306 | } | 319 | } |
