mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-08-14 22:31:36 +03:00
simpify service install
This commit is contained in:
+6
-13
@@ -273,27 +273,30 @@ set "args_with_value=sni host altorder"
|
||||
set "args="
|
||||
set "capture=0"
|
||||
set "mergeargs=0"
|
||||
set "BIN=%~dp0bin\"
|
||||
set "LISTS=%~dp0lists\"
|
||||
set QUOTE="
|
||||
|
||||
for /f "tokens=*" %%a in ('type "!selectedFile!"') do (
|
||||
set "line=%%a"
|
||||
call set "line=%%line:^!=EXCL_MARK%%"
|
||||
call set "line=!line!"
|
||||
|
||||
echo !line! | findstr /i "%BIN%winws.exe" >nul
|
||||
echo !line! | findstr /i "winws.exe" >nul
|
||||
if not errorlevel 1 (
|
||||
set "capture=1"
|
||||
)
|
||||
|
||||
if !capture!==1 (
|
||||
if not defined args (
|
||||
set "line=!line:*%BIN%winws.exe"=!"
|
||||
set "line=!line:*winws.exe"=!"
|
||||
)
|
||||
|
||||
set "temp_args="
|
||||
for %%i in (!line!) do (
|
||||
set "arg=%%i"
|
||||
|
||||
if not "!arg!"=="^" (
|
||||
if not "!arg!"=="^" if not "!arg!"=="^^" (
|
||||
if "!arg:~0,2!" EQU "--" if not !mergeargs!==0 (
|
||||
set "mergeargs=0"
|
||||
)
|
||||
@@ -306,19 +309,9 @@ for /f "tokens=*" %%a in ('type "!selectedFile!"') do (
|
||||
set "arg=\!QUOTE!!arg!\!QUOTE!"
|
||||
) else if "!arg:~0,1!"=="@" (
|
||||
set "arg=\!QUOTE!@%~dp0!arg:~1!\!QUOTE!"
|
||||
) else if "!arg:~0,5!"=="%%BIN%%" (
|
||||
set "arg=\!QUOTE!!BIN_PATH!!arg:~5!\!QUOTE!"
|
||||
) else if "!arg:~0,7!"=="%%LISTS%%" (
|
||||
set "arg=\!QUOTE!!LISTS_PATH!!arg:~7!\!QUOTE!"
|
||||
) else (
|
||||
set "arg=\!QUOTE!%~dp0!arg!\!QUOTE!"
|
||||
)
|
||||
) else if "!arg:~0,12!" EQU "%%GameFilter%%" (
|
||||
set "arg=%GameFilter%"
|
||||
) else if "!arg:~0,15!" EQU "%%GameFilterTCP%%" (
|
||||
set "arg=%GameFilterTCP%"
|
||||
) else if "!arg:~0,15!" EQU "%%GameFilterUDP%%" (
|
||||
set "arg=%GameFilterUDP%"
|
||||
)
|
||||
|
||||
if !mergeargs!==1 (
|
||||
|
||||
Reference in New Issue
Block a user