|
@ -58,9 +58,14 @@ BranchTier::BranchTier(toml::value const &v_) |
|
|
|
|
|
|
|
|
for(auto const &branch : branches) |
|
|
for(auto const &branch : branches) |
|
|
{ |
|
|
{ |
|
|
|
|
|
bool enabled; |
|
|
std::string type; |
|
|
std::string type; |
|
|
auto const &table = branch.as_table(); |
|
|
auto const &table = branch.as_table(); |
|
|
|
|
|
|
|
|
|
|
|
enabled = toml::find_or(v_,"enabled",false); |
|
|
|
|
|
if(!enabled) |
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
type = table.at("type").as_string(); |
|
|
type = table.at("type").as_string(); |
|
|
if(type == "literal") |
|
|
if(type == "literal") |
|
|
l::load_branch_literal(table,_branches); |
|
|
l::load_branch_literal(table,_branches); |
|
|