mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-24 10:38:14 +03:00
3cc9409354
- changed versioning politicy ([game version]-[app state][app build]) - created patches system now launcher automatically applies patches to the game - changed launcher config structure - changed executable file on game launching to the launcher.bat to check the telemetry status and prevent game starting in positive result - updated readme
36 lines
1.1 KiB
Batchfile
36 lines
1.1 KiB
Batchfile
@echo off
|
|
|
|
REM Notice: This file is overwritten for each patch for safety reasons.
|
|
REM Hence, any manual changes will be overwritten by the next patch.
|
|
|
|
REM ============ AVOID CHANGES HERE ============
|
|
|
|
SET perr=0
|
|
REM Verify that the important hosts are blocked
|
|
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 (
|
|
REM Show the message to the user
|
|
echo ERROR: Crucial domains are not blocked. Please re-run the patch script. >_error.txt
|
|
notepad _error.txt
|
|
del _error.txt
|
|
exit
|
|
)
|
|
|
|
REM Emulate the games behaviour
|
|
copy mhyprot2.sys "%TEMP%\"
|
|
regedit mhyprot2_running.reg
|
|
|
|
REM Disable crash reporting
|
|
IF EXIST GenshinImpact_Data\upload_crash.exe (
|
|
move "GenshinImpact_Data\upload_crash.exe" "GenshinImpact_Data\upload_crash.exe.bak"
|
|
)
|
|
|
|
REM ============= Launch the game =============
|
|
REM https://docs.unity3d.com/Manual/CommandLineArguments.html
|
|
REM Append the arguments to the command: launcher.bat arg1 arg2 ...
|
|
|
|
start GenshinImpact.exe %*
|