Don't let the launcher scripts close the console window

and change back to the working directory
This commit is contained in:
abcdefg30 2017-05-26 10:16:30 +02:00
parent 2c8199a4a8
commit ab0defe965
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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.