diff options
Diffstat (limited to 'scripts/src/osd/windows_cfg.lua')
-rw-r--r-- | scripts/src/osd/windows_cfg.lua | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/src/osd/windows_cfg.lua b/scripts/src/osd/windows_cfg.lua index 2735e4df4f0..10e5ee86a21 100644 --- a/scripts/src/osd/windows_cfg.lua +++ b/scripts/src/osd/windows_cfg.lua @@ -37,12 +37,20 @@ else } end -if not _OPTIONS["DONT_USE_NETWORK"] then +if _OPTIONS["USE_TAPTUN"]=="1" or _OPTIONS["USE_PCAP"]==1 then defines { "USE_NETWORK", - "OSD_NET_USE_PCAP", - "OSD_NET_USE_TAPTUN", } + if _OPTIONS["USE_TAPTUN"]=="1" then + defines { + "OSD_NET_USE_TAPTUN", + } + end + if _OPTIONS["USE_PCAP"]=="1" then + defines { + "OSD_NET_USE_PCAP", + } + end end if _OPTIONS["USE_SDL"]=="1" then |