Generate Reputation UI bson files (#7340)

This commit is contained in:
Vincent Stumpf
2022-11-27 00:53:54 -08:00
committed by GitHub
parent bc4934373d
commit 4661016445
14 changed files with 449 additions and 11 deletions

View File

@@ -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 );
}