12345678910111213141516171819202122232425262728293031323334353637 |
- @echo off
- SET perr=0
- ping -n 1 -w 1 log-upload-os.mihoyo.com | find "[0.0.0.0]" >nul
- IF %ERRORLEVEL% NEQ 0 SET perr=1
- ping -n 1 -w 1 overseauspider.yuanshen.com | find "[0.0.0.0]" >nul
- IF %ERRORLEVEL% NEQ 0 SET perr=1
- IF %perr% NEQ 0 (
- echo ERROR: Crucial domains are not blocked. Please re-run the patch script. >_error.txt
- notepad _error.txt
- del _error.txt
- exit
- )
- copy mhyprot2.sys "%TEMP%\"
- regedit mhyprot2_running.reg
- IF EXIST GenshinImpact_Data\upload_crash.exe (
- move "GenshinImpact_Data\upload_crash.exe" "GenshinImpact_Data\upload_crash.exe.bak"
- )
- start GenshinImpact.exe %*
|