mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 16:05:05 -05:00
Implement --variant option.
This commit is contained in:
@@ -341,6 +341,13 @@ static void parse_arg(int key, char *arg) {
|
|||||||
opt_donate_level = v;
|
opt_donate_level = v;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 1021: /* --variant */
|
||||||
|
v = atoi(arg);
|
||||||
|
if (v > VARIANT_AUTO && v < VARIANT_MAX) {
|
||||||
|
opt_variant = v;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case 1006: /* --nicehash */
|
case 1006: /* --nicehash */
|
||||||
opt_nicehash = true;
|
opt_nicehash = true;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user