Update from new launcher.bat
This commit is contained in:
parent
a26d51dde8
commit
53bd751945
@ -5,11 +5,12 @@ REM Hence, any manual changes will be overwritten by the next patch.
|
|||||||
|
|
||||||
REM ============ AVOID CHANGES HERE ============
|
REM ============ AVOID CHANGES HERE ============
|
||||||
|
|
||||||
|
REM DOMAIN_CHECK_BEGIN
|
||||||
SET perr1=1
|
SET perr1=1
|
||||||
SET perr2=1
|
SET perr2=1
|
||||||
|
SET perr3=1
|
||||||
SET perr=0
|
SET perr=0
|
||||||
|
|
||||||
REM Verify that the important hosts are blocked
|
|
||||||
setlocal EnableDelayedExpansion
|
setlocal EnableDelayedExpansion
|
||||||
FOR /f "delims=" %%i IN ('ping -n 1 -w 1 log-upload-os.hoyoverse.com') DO (
|
FOR /f "delims=" %%i IN ('ping -n 1 -w 1 log-upload-os.hoyoverse.com') DO (
|
||||||
echo %%i | find "[0.0.0.0]" >nul
|
echo %%i | find "[0.0.0.0]" >nul
|
||||||
@ -17,27 +18,35 @@ FOR /f "delims=" %%i IN ('ping -n 1 -w 1 log-upload-os.hoyoverse.com') DO (
|
|||||||
echo %%i | find "could not find host" >nul
|
echo %%i | find "could not find host" >nul
|
||||||
IF !ERRORLEVEL! EQU 0 SET "perr1=0"
|
IF !ERRORLEVEL! EQU 0 SET "perr1=0"
|
||||||
)
|
)
|
||||||
FOR /f "delims=" %%i IN ('ping -n 1 -w 1 overseauspider.yuanshen.com') DO (
|
FOR /f "delims=" %%i IN ('ping -n 1 -w 1 sg-public-data-api.hoyoverse.com') DO (
|
||||||
echo %%i | find "[0.0.0.0]" >nul
|
echo %%i | find "[0.0.0.0]" >nul
|
||||||
IF !ERRORLEVEL! EQU 0 SET "perr2=0"
|
IF !ERRORLEVEL! EQU 0 SET "perr2=0"
|
||||||
echo %%i | find "could not find host" >nul
|
echo %%i | find "could not find host" >nul
|
||||||
IF !ERRORLEVEL! EQU 0 SET "perr2=0"
|
IF !ERRORLEVEL! EQU 0 SET "perr2=0"
|
||||||
)
|
)
|
||||||
|
FOR /f "delims=" %%i IN ('ping -n 1 -w 1 overseauspider.yuanshen.com') DO (
|
||||||
|
echo %%i | find "[0.0.0.0]" >nul
|
||||||
|
IF !ERRORLEVEL! EQU 0 SET "perr3=0"
|
||||||
|
echo %%i | find "could not find host" >nul
|
||||||
|
IF !ERRORLEVEL! EQU 0 SET "perr3=0"
|
||||||
|
)
|
||||||
|
|
||||||
REM There's no OR operator for "IF"
|
REM There's no OR operator for "IF"
|
||||||
IF %perr1% EQU 1 SET perr=1
|
IF %perr1% EQU 1 SET perr=1
|
||||||
IF %perr2% EQU 1 SET perr=1
|
IF %perr2% EQU 1 SET perr=1
|
||||||
|
IF %perr3% EQU 1 SET perr=1
|
||||||
|
|
||||||
IF %perr% NEQ 0 (
|
IF %perr% NEQ 0 (
|
||||||
REM Show the message to the user
|
REM Show the message to the user
|
||||||
echo ERROR: Crucial domains are not blocked. Please re-run the patch script. >_error.txt
|
echo ERROR: You opted to block the analytics servers but they are reachable. Please re-run the patch script. >_error.txt
|
||||||
notepad _error.txt
|
notepad _error.txt
|
||||||
del _error.txt
|
del _error.txt
|
||||||
exit
|
exit
|
||||||
)
|
)
|
||||||
|
REM DOMAIN_CHECK_END
|
||||||
|
|
||||||
REM Emulate the games behaviour
|
REM Emulate the games behaviour
|
||||||
copy mhyprot2.sys "%TEMP%\"
|
copy mhyprot3.sys "%TEMP%\"
|
||||||
regedit mhyprot2_running.reg
|
regedit mhyprot2_running.reg
|
||||||
|
|
||||||
REM Disable crash reporting
|
REM Disable crash reporting
|
||||||
|
Loading…
Reference in New Issue
Block a user