Update NonSteamLaunchers.sh

This commit is contained in:
Roy 2024-08-28 04:35:30 -07:00 committed by GitHub
parent 52d78e8032
commit 9bb5d6ae7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1432,7 +1432,7 @@ function install_hoyo {
echo "Running HYP.exe..." echo "Running HYP.exe..."
"$STEAM_RUNTIME" "$proton_dir/proton" run "${target_dir}/HYP.exe" || { echo "Failed to run HYP.exe"; return 1; } & "$STEAM_RUNTIME" "$proton_dir/proton" run "${target_dir}/HYP.exe" || { echo "Failed to run HYP.exe"; return 1; } &
sleep 5 # Wait for 5 seconds before terminating HYP.exe sleep 5 # Wait for 5 seconds before terminating HYP.exe
terminate_processes "HYP.exe" "HYPHelper" terminate_processes "HYP.exe"
echo "Removing installer file..." echo "Removing installer file..."
rm -f "${hoyo_dir}/HoYoPlay_install_ua_f368eee6d08d.exe" || { echo "Failed to remove installer file"; return 1; } rm -f "${hoyo_dir}/HoYoPlay_install_ua_f368eee6d08d.exe" || { echo "Failed to remove installer file"; return 1; }