aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2021-06-11 00:07:35 +0200
committerJan200101 <sentrycraft123@gmail.com>2021-06-11 00:07:35 +0200
commite83d0567b736bb86515ebd651eb9e2a921dcaab3 (patch)
treefe7f8e030534e7c257afd6f4ad4fd1ab1644a14a
parent454d15be1ed9127b0be1a90324132cc20ca1b082 (diff)
downloadpolecat-e83d0567b736bb86515ebd651eb9e2a921dcaab3.tar.gz
polecat-e83d0567b736bb86515ebd651eb9e2a921dcaab3.zip
ignore flags for wine, add no-net debug print
-rw-r--r--src/command.h1
-rw-r--r--src/common.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/command.h b/src/command.h
index 8fec1c7..5b6136f 100644
--- a/src/command.h
+++ b/src/command.h
@@ -52,6 +52,7 @@
{ \
found = 0; \
if (argv[j][0] != '-') continue; \
+ if(!strcmp(argv[0], "wine") && !strcmp(argv[1], "run")) break;\
\
for (unsigned long i = 0; i < ARRAY_LEN(GROUP##_flags); ++i) \
{ \
diff --git a/src/common.c b/src/common.c
index 66a470b..c5ee354 100644
--- a/src/common.c
+++ b/src/common.c
@@ -13,6 +13,9 @@ uint8_t no_net = 0;
int set_no_net(UNUSED int argc, UNUSED char** argv)
{
+#ifndef NDEBUG
+ puts("[NO_NET] set");
+#endif
no_net = 1;
return 0;
}