Added support for type-less connector options (i.e. flags)
This commit is contained in:
parent
037d730f0f
commit
7d420d884e
1 changed files with 3 additions and 1 deletions
|
@ -96,8 +96,10 @@ namespace Controller {
|
||||||
p[it.key()] = p[it.key()].asString();
|
p[it.key()] = p[it.key()].asString();
|
||||||
if (p[it.key()].asStringRef().size() > 0){
|
if (p[it.key()].asStringRef().size() > 0){
|
||||||
argarr[argnum++] = (char*)((*it)["option"].asStringRef().c_str());
|
argarr[argnum++] = (char*)((*it)["option"].asStringRef().c_str());
|
||||||
|
if (it->isMember("type")){
|
||||||
argarr[argnum++] = (char*)(p[it.key()].asStringRef().c_str());
|
argarr[argnum++] = (char*)(p[it.key()].asStringRef().c_str());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
if (it.key() == "debug"){
|
if (it.key() == "debug"){
|
||||||
static std::string debugLvlStr;
|
static std::string debugLvlStr;
|
||||||
|
|
Loading…
Add table
Reference in a new issue