add argument for toggling existing options
This commit is contained in:
parent
0f8efdb537
commit
b278e686dd
19
src/main.cpp
19
src/main.cpp
|
@ -49,12 +49,13 @@ int main(int argc, char *argv[]) {
|
|||
printf("\n");
|
||||
printf("Help\n");
|
||||
printf("-h Show this message.\n");
|
||||
printf("-d <num> Start on the specified panel.\n");
|
||||
printf("-c <num> Force terminal color mode.\n");
|
||||
printf(" 0 Auto (default)\n");
|
||||
printf(" 1 Monochrome\n");
|
||||
printf(" 2 8bit\n");
|
||||
printf(" 3 Full\n");
|
||||
printf("-d <num> Start on the specified panel.\n");
|
||||
printf("-o <num> Toggle player options\n");
|
||||
printf("-s <num> Stereo Seperation\n");
|
||||
exit(0);
|
||||
} else if (strcmp(argv[a], "-d") == 0) {
|
||||
|
@ -69,6 +70,22 @@ int main(int argc, char *argv[]) {
|
|||
} else if (strcmp(argv[a], "-c") == 0) {
|
||||
colorMode = atoi(argv[a+1]);
|
||||
a++;
|
||||
} else if (strcmp(argv[a], "-o") == 0) {
|
||||
switch (atoi(argv[a+1])) {
|
||||
case 1:
|
||||
ptnChans = !ptnChans;
|
||||
break;
|
||||
case 2:
|
||||
dynamicRoll = !dynamicRoll;
|
||||
break;
|
||||
case 3:
|
||||
ptnOrder = !ptnOrder;
|
||||
break;
|
||||
case 4:
|
||||
showEffects = !showEffects;
|
||||
break;
|
||||
}
|
||||
a++;
|
||||
} else if (strcmp(argv[a], "-s") == 0) {
|
||||
int newmix = atoi(argv[a+1]);
|
||||
if (newmix > 100 || newmix < 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user