launcher.bat 922 B

12345678910111213141516171819202122232425262728293031323334
  1. @echo off
  2. REM ============ AVOID CHANGES HERE ============
  3. SET perr=0
  4. REM Verify that the important hosts are blocked
  5. ping -n 1 -w 1 log-upload-os.mihoyo.com | find "[0.0.0.0]" >nul
  6. IF %ERRORLEVEL% NEQ 0 SET perr=1
  7. ping -n 1 -w 1 overseauspider.yuanshen.com | find "[0.0.0.0]" >nul
  8. IF %ERRORLEVEL% NEQ 0 SET perr=1
  9. IF %perr% NEQ 0 (
  10. REM Show the message to the user
  11. echo ERROR: Crucial domains are not blocked. Please re-run the patch script. >_error.txt
  12. notepad _error.txt
  13. del _error.txt
  14. exit
  15. )
  16. REM Emulate the games behaviour
  17. copy mhyprot2.sys "%TEMP%\"
  18. regedit mhyprot2_running.reg
  19. REM Disable crash reporting
  20. IF EXIST GenshinImpact_Data\upload_crash.exe (
  21. move "GenshinImpact_Data\upload_crash.exe" "GenshinImpact_Data\upload_crash.exe.bak"
  22. )
  23. REM ============= Launch the game =============
  24. REM Add custom launch params here
  25. REM https://docs.unity3d.com/Manual/CommandLineArguments.html
  26. GenshinImpact.exe