mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-01 11:43:41 +00:00
21 lines
774 B
Batchfile
21 lines
774 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 add -b main https://github.com/LiteLDev/LiteLoaderSDK.git SDK
|
|
|
|
echo.
|
|
echo [INFO] Upgrading LiteLoaderSDK from GitHub finished.
|
|
|
|
pause |