diff --git a/README.md b/README.md index 0866d25..1eca19b 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ The anticheat the games use is fundamentally incompatible with Wine in multiple Manual usage instructions: - Download the game you want to run -- Download a release from this repository +- Download the latest release from this repository - Extract the archive (**NOT INTO THE GAME DIRECTORY! THIS IS IMPORTANT!**) -- Block analytics servers in your `hosts` file. You can find the list in SERVERS.txt +- Run `./block_analytics.sh` from the archive to block the games from accessing analytics servers. This will require superuser privileges - Run `wine jadeite.exe 'Z:\wine\path\to\game.exe'` This tool is capable of starting the games from a different process. This may be useful for spoofing the parent process (SR is known to report it). Use `wine jadeite.exe 'Z:\wine\path\to\game.exe' 'Z:\wine\path\to\launcher.exe'`. `explorer.exe` is used as the default. diff --git a/SERVERS.txt b/SERVERS.txt deleted file mode 100644 index c54e284..0000000 --- a/SERVERS.txt +++ /dev/null @@ -1,18 +0,0 @@ -# Honkai Impact 3rd logging servers (glb/sea/tw/kr/jp): -0.0.0.0 log-upload-os.hoyoverse.com -0.0.0.0 sg-public-data-api.hoyoverse.com -0.0.0.0 dump.gamesafe.qq.com - -# Honkai Impact 3rd logging servers (cn): -0.0.0.0 log-upload.mihoyo.com -0.0.0.0 public-data-api.mihoyo.com -0.0.0.0 dump.gamesafe.qq.com - - -# Honkai Star Rail logging servers (oversea) -0.0.0.0 log-upload-os.hoyoverse.com -0.0.0.0 sg-public-data-api.hoyoverse.com - -# Honkai Star Rail logging servers (China) -0.0.0.0 log-upload.mihoyo.com -0.0.0.0 public-data-api.mihoyo.com diff --git a/block_analytics.sh b/block_analytics.sh new file mode 100644 index 0000000..85719c7 --- /dev/null +++ b/block_analytics.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env sh + +analytics_servers=$(cat <&1 >> /dev/null + if test $? -ne 0; then + echo "Could not block analytics servers. Please add the following lines to your /etc/hosts manually:" + echo "$analytics_servers" + fi +else + echo "Analytics servers are already blocked" +fi diff --git a/build.sh b/build.sh index 1b998fc..303754b 100644 --- a/build.sh +++ b/build.sh @@ -14,6 +14,7 @@ mkdir out cp ./build/injector/jadeite.exe ./out cp ./build/injector/launcher_payload.dll ./out cp ./build/game_payload/game_payload.dll ./out +cp ./block_analytics.sh ./out cp ./LICENSE.txt ./out $strip ./out/*.{exe,dll}