LiteLoaderBDS-1.16.40/Tools/SDK-submodule-update.cmd
2022-09-21 19:47:03 +08:00

21 lines
738 B
Batchfile

@echo off
setlocal enabledelayedexpansion
rem Process System Proxy
for /f "tokens=3* delims= " %%i in ('Reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable') do (
if %%i==0x1 (
echo [INFO] System Proxy enabled. Adapting Settings...
for /f "tokens=3* delims= " %%a in ('Reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer') do set PROXY_ADDR=%%a
set http_proxy=http://!PROXY_ADDR!
set https_proxy=http://!PROXY_ADDR!
echo [INFO] System Proxy enabled. Adapting Settings finished.
echo.
)
)
git submodule update --init --recursive
echo.
echo [INFO] Upgrading LiteLoaderSDK from GitHub finished.
pause