From efeee9d4cd2df0545ca3f57efe07cee46c0e3a31 Mon Sep 17 00:00:00 2001 From: max-pulya Date: Wed, 30 Jul 2025 00:16:20 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=81=D0=B8=D1=81=D1=82=D0=B5=D0=BC=D1=8B=20?= =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F,?= =?UTF-8?q?=20=D1=87=D1=82=D0=BE=20=D0=B1=D1=8B=20=D0=BE=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BD=D0=B5=20=D0=BC=D0=B5=D1=88=D0=B0=D0=BB=D0=B0=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D1=83=20=D0=B7=D0=B0=D0=BF=D1=80?= =?UTF-8?q?=D0=B5=D1=82=D0=B0=20(#4143)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service.bat | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/service.bat b/service.bat index d22ff2a..db340fd 100644 --- a/service.bat +++ b/service.bat @@ -11,6 +11,10 @@ if "%~1"=="check_updates" ( call :service_check_updates soft exit /b ) +if "%~1"=="start_update" ( + call :service_start_update soft + exit /b +) if "%~1"=="load_game_filter" ( call :game_switch_status @@ -251,6 +255,15 @@ goto menu :: CHECK UPDATES ======================= :service_check_updates +if "%1"=="soft" ( +start /b service start_update +exit /b +) +goto :service_start_update + + +:service_start_update + chcp 437 > nul cls @@ -266,7 +279,7 @@ for /f "delims=" %%A in ('powershell -command "(Invoke-WebRequest -Uri \"%GITHUB if not defined GITHUB_VERSION ( echo Warning: failed to fetch the latest version. Check your internet connection. This warning does not affect the operation of zapret pause - if "%1"=="soft" exit /b + if "%1"=="soft" exit goto menu ) @@ -274,7 +287,7 @@ if not defined GITHUB_VERSION ( if "%LOCAL_VERSION%"=="%GITHUB_VERSION%" ( echo Latest version installed: %LOCAL_VERSION% - if "%1"=="soft" exit /b + if "%1"=="soft" exit pause goto menu ) @@ -293,11 +306,12 @@ if /i "%CHOICE%"=="Y" ( ) -if "%1"=="soft" exit /b +if "%1"=="soft" exit pause goto menu + :: DIAGNOSTICS ========================= :service_diagnostics chcp 437 > nul