mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-05-17 00:16:24 +03:00
отображение текущей стратегии в меню сервиса (#13053)
This commit is contained in:
@@ -58,11 +58,13 @@ cls
|
||||
call :ipset_switch_status
|
||||
call :game_switch_status
|
||||
call :check_updates_switch_status
|
||||
call :get_strategy_name
|
||||
|
||||
set "menu_choice=null"
|
||||
|
||||
echo.
|
||||
echo ZAPRET SERVICE MANAGER v!LOCAL_VERSION!
|
||||
echo Strategy: !CurrentStrategy!
|
||||
echo ----------------------------------------
|
||||
echo.
|
||||
echo :: SERVICE
|
||||
@@ -995,6 +997,13 @@ pause
|
||||
goto menu
|
||||
|
||||
|
||||
:: Get strategy name
|
||||
:get_strategy_name
|
||||
set "CurrentStrategy=not installed"
|
||||
for /f "tokens=2*" %%A in ('reg query "HKLM\System\CurrentControlSet\Services\zapret" /v zapret-discord-youtube 2^>nul') do set "CurrentStrategy=%%B"
|
||||
exit /b
|
||||
|
||||
|
||||
:: Utility functions
|
||||
|
||||
:PrintGreen
|
||||
|
||||
Reference in New Issue
Block a user