From e83d0567b736bb86515ebd651eb9e2a921dcaab3 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Fri, 11 Jun 2021 00:07:35 +0200 Subject: ignore flags for wine, add no-net debug print --- src/command.h | 1 + src/common.c | 3 +++ 2 files changed, 4 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3