Generate Reputation UI bson files (#7340)
This commit is contained in:
@@ -198,7 +198,16 @@ void YamlDatabase::parseImports( const ryml::Tree& rootNode ){
|
||||
// Skip this import
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this->nodeExists(node, "Generator")) {
|
||||
bool isGenerator;
|
||||
if (!this->asBool(node, "Generator", isGenerator)) {
|
||||
continue;
|
||||
}
|
||||
if (!(shouldLoadGenerator && isGenerator))
|
||||
continue; // skip import
|
||||
}
|
||||
|
||||
this->load( importFile );
|
||||
}
|
||||
@@ -358,6 +367,10 @@ std::string YamlDatabase::getCurrentFile(){
|
||||
return this->currentFile;
|
||||
}
|
||||
|
||||
void YamlDatabase::setGenerator(bool shouldLoad) {
|
||||
shouldLoadGenerator = shouldLoad;
|
||||
}
|
||||
|
||||
void on_yaml_error( const char* msg, size_t len, ryml::Location loc, void *user_data ){
|
||||
throw std::runtime_error( msg );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user