Add Arto (RTO) support

This commit is contained in:
Ben Gräf 2018-06-18 22:36:06 +02:00
parent eb8b854211
commit bb1fba37a6
3 changed files with 17 additions and 2 deletions

View file

@ -283,7 +283,8 @@ constexpr static const char *pow_variant_names[] = {
"alloy",
"xtl",
"msr",
"xhv"
"xhv",
"rto"
};
Options *Options::parse(int argc, char **argv)
@ -1034,6 +1035,11 @@ bool Options::parsePowVariant(const char *powVariant)
break;
}
if (i == ARRAY_SIZE(pow_variant_names) - 1 && !strcmp(powVariant, "arto")) {
m_powVariant = POW_RTO;
break;
}
if (i == ARRAY_SIZE(pow_variant_names) - 1) {
showUsage(1);
return false;