mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
Updated location_access.cpp to only log Parse Failures.
This commit is contained in:
parent
3aa12f171c
commit
030a1d92f8
1 changed files with 20 additions and 4 deletions
|
@ -14,6 +14,7 @@
|
|||
|
||||
#include "3drando/shops.hpp"
|
||||
#include <regex>
|
||||
#include "logic_expression.h"
|
||||
extern "C" {
|
||||
extern PlayState* gPlayState;
|
||||
}
|
||||
|
@ -914,17 +915,32 @@ void RegionTable_Init() {
|
|||
|
||||
for (uint32_t i = RR_ROOT; i <= RR_GANONS_CASTLE; i++) {
|
||||
for (EventAccess& eventAccess : areaTable[i].events) {
|
||||
ss << eventAccess.GetConditionStr() << std::endl;
|
||||
try {
|
||||
LogicExpression::Parse(eventAccess.GetConditionStr());
|
||||
}
|
||||
catch (std::exception& ex) {
|
||||
ss << eventAccess.GetConditionStr() << std::endl;
|
||||
}
|
||||
}
|
||||
for (LocationAccess& locPair : areaTable[i].locations) {
|
||||
ss << locPair.GetConditionStr() << std::endl;
|
||||
try {
|
||||
LogicExpression::Parse(locPair.GetConditionStr());
|
||||
}
|
||||
catch (std::exception& ex) {
|
||||
ss << locPair.GetConditionStr() << std::endl;
|
||||
}
|
||||
}
|
||||
for (Entrance& exit : areaTable[i].exits) {
|
||||
ss << exit.GetConditionStr() << std::endl;
|
||||
try {
|
||||
LogicExpression::Parse(exit.GetConditionStr());
|
||||
}
|
||||
catch (std::exception& ex) {
|
||||
ss << exit.GetConditionStr() << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SPDLOG_INFO("All Conditions:\n{}", ss.str());
|
||||
SPDLOG_INFO("Parse Failure Conditions:\n{}", ss.str());
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue