diff --git a/scripts/killswitch.cmd b/scripts/killswitch.cmd index 4c78b4f..8fd010c 100644 --- a/scripts/killswitch.cmd +++ b/scripts/killswitch.cmd @@ -62,7 +62,7 @@ if "%PROXY_IP%" EQU "localhost" ( goto killgame ) - timeout /t 2 /NOBREAK >nul + ping 127.0.0.1 -n 2 > nul goto loop diff --git a/scripts/private_server_launch.cmd b/scripts/private_server_launch.cmd index c6e3402..7641cb9 100644 --- a/scripts/private_server_launch.cmd +++ b/scripts/private_server_launch.cmd @@ -80,7 +80,8 @@ taskkill /f /im mitmdump.exe echo Done, see you next time -timeout.exe /t 2 /nobreak >nul +:: Just in case the user has corutils installed, use this hacky timeout instead of the timeout command +ping 127.0.0.1 -n 2 > nul taskkill /f /fi "WINDOWTITLE eq Administrator: PS Launcher Script" || taskkill /f /fi "WINDOWTITLE eq PS Launcher Script"