From ab0defe965408ade5bf87d0640cec43a3ef8dd0a Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Fri, 26 May 2017 10:16:30 +0200 Subject: [PATCH] Don't let the launcher scripts close the console window and change back to the working directory --- launch-game.cmd | 3 ++- utility.cmd | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/launch-game.cmd b/launch-game.cmd index 04134a7..cca4f5b 100644 --- a/launch-game.cmd +++ b/launch-game.cmd @@ -11,7 +11,8 @@ set MOD_SEARCH_PATHS=%MOD_SEARCH_PATHS%,./mods cd engine OpenRA.Game.exe Game.Mod=%MOD_ID% Engine.LaunchPath="%TEMPLATE_LAUNCHER%" "Engine.ModSearchPaths=%MOD_SEARCH_PATHS%" "%*" if %errorlevel% neq 0 goto crashdialog -exit +cd .. +exit /b :crashdialog echo ---------------------------------------- echo OpenRA has encountered a fatal error. diff --git a/utility.cmd b/utility.cmd index fa5f9c8..1e098d8 100644 --- a/utility.cmd +++ b/utility.cmd @@ -20,7 +20,7 @@ echo Press enter to view a list of valid utility commands. echo. set /P command=Please enter a command: OpenRA.Utility.exe %MOD_ID% -if /I "%command%" EQU "--exit" (exit) +if /I "%command%" EQU "--exit" (cd .. & exit /b) echo. echo ---------------------------------------- echo.