mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2025-04-18 16:41:31 -07:00
serivce installer now works with --wf-tcp and --wf-udp
This commit is contained in:
parent
e04dba7d79
commit
977561fde8
@ -37,9 +37,10 @@ if not defined selectedFile (
|
|||||||
goto :eof
|
goto :eof
|
||||||
)
|
)
|
||||||
|
|
||||||
:: Парсим аргументы
|
:: Парсим аргументы (mergeargs: 2=start wf|1=wf argument|0=default)
|
||||||
set "args="
|
set "args="
|
||||||
set "capture=0"
|
set "capture=0"
|
||||||
|
set "mergeargs=0"
|
||||||
set QUOTE="
|
set QUOTE="
|
||||||
|
|
||||||
for /f "tokens=*" %%a in ('type "!selectedFile!"') do (
|
for /f "tokens=*" %%a in ('type "!selectedFile!"') do (
|
||||||
@ -60,6 +61,10 @@ for /f "tokens=*" %%a in ('type "!selectedFile!"') do (
|
|||||||
set "arg=%%i"
|
set "arg=%%i"
|
||||||
|
|
||||||
if not "!arg!"=="^" (
|
if not "!arg!"=="^" (
|
||||||
|
if "!arg:~0,2!" EQU "--" if not !mergeargs!==0 (
|
||||||
|
set "mergeargs=0"
|
||||||
|
)
|
||||||
|
|
||||||
if "!arg:~0,1!" EQU "!QUOTE!" (
|
if "!arg:~0,1!" EQU "!QUOTE!" (
|
||||||
set "arg=!arg:~1,-1!"
|
set "arg=!arg:~1,-1!"
|
||||||
|
|
||||||
@ -75,8 +80,18 @@ for /f "tokens=*" %%a in ('type "!selectedFile!"') do (
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if !mergeargs!==1 (
|
||||||
|
set "temp_args=!temp_args!,!arg!"
|
||||||
|
) else (
|
||||||
set "temp_args=!temp_args! !arg!"
|
set "temp_args=!temp_args! !arg!"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if "!arg:~0,4!" EQU "--wf" (
|
||||||
|
set "mergeargs=2"
|
||||||
|
) else if !mergeargs!==2 (
|
||||||
|
set "mergeargs=1"
|
||||||
|
)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if not "!temp_args!"=="" (
|
if not "!temp_args!"=="" (
|
||||||
|
Loading…
Reference in New Issue
Block a user