Don't let the launcher scripts close the console window
and change back to the working directory
This commit is contained in:
parent
2c8199a4a8
commit
ab0defe965
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user