From b278e686dd9b4319beb9a908867ae6eaf83da6b8 Mon Sep 17 00:00:00 2001 From: Wirlaburla Date: Thu, 21 Mar 2024 13:29:30 -0500 Subject: [PATCH] add argument for toggling existing options --- src/main.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 86dd71b..c9ff8eb 100644 --- a/src/main.cpp +++ b/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 Start on the specified panel.\n"); printf("-c Force terminal color mode.\n"); printf(" 0 Auto (default)\n"); printf(" 1 Monochrome\n"); printf(" 2 8bit\n"); printf(" 3 Full\n"); + printf("-d Start on the specified panel.\n"); + printf("-o Toggle player options\n"); printf("-s 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)