From 57af145c1261ba8d26eed3a5b0ee29880f44e9f3 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Fri, 26 May 2017 09:27:55 +0200 Subject: [PATCH] Don't let the launcher scripts close the console window --- launch-game.cmd | 2 +- utility.cmd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/launch-game.cmd b/launch-game.cmd index 8b0bcc5c9a..a42af226ac 100644 --- a/launch-game.cmd +++ b/launch-game.cmd @@ -6,7 +6,7 @@ for %%x in (%*) do ( :choosemod set /P mod=Select mod (ra, cnc, d2k, ts) or --exit: -if /I "%mod%" EQU "--exit" (exit) +if /I "%mod%" EQU "--exit" (exit /b) if /I "%mod%" EQU "ra" (goto launchmod) if /I "%mod%" EQU "cnc" (goto launchmod) if /I "%mod%" EQU "ts" (goto launchmod) diff --git a/utility.cmd b/utility.cmd index 2a471885df..6d8eba272b 100644 --- a/utility.cmd +++ b/utility.cmd @@ -6,7 +6,7 @@ echo. call OpenRA.Utility.exe echo Enter --exit to exit set /P mod=Please enter a modname: OpenRA.Utility.exe -if /I "%mod%" EQU "--exit" (exit) +if /I "%mod%" EQU "--exit" (exit /b) if /I "%mod%" EQU "ra" (goto help) if /I "%mod%" EQU "cnc" (goto help) if /I "%mod%" EQU "ts" (goto help) @@ -31,7 +31,7 @@ echo --help to view the help echo --mod to choose a new mod echo. set /P command=Please enter a command: OpenRA.Utility.exe %mod% -if /I "%command%" EQU "--exit" (exit) +if /I "%command%" EQU "--exit" (exit /b) if /I "%command%" EQU "--help" (goto help) if /I "%command%" EQU "--mod" (goto choosemod) echo.