RECORDANDRONCO/utility.cmd
abcdefg30 ab0defe965 Don't let the launcher scripts close the console window
and change back to the working directory
2017-05-27 12:01:29 +02:00

29 lines
706 B
Batchfile

@echo off
FOR /F "tokens=1,2 delims==" %%A IN (mod.config) DO (set %%A=%%B)
title OpenRA.Utility.exe %MOD_ID%
set MOD_SEARCH_PATHS=%~dp0mods
if %INCLUDE_DEFAULT_MODS% neq "True" goto start
set MOD_SEARCH_PATHS=%MOD_SEARCH_PATHS%,./mods
:start
cd engine
:loop
echo.
echo ----------------------------------------
echo.
echo Enter a utility command or --exit to exit.
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" (cd .. & exit /b)
echo.
echo ----------------------------------------
echo.
echo OpenRA.Utility.exe %MOD_ID% %command%
call OpenRA.Utility.exe %MOD_ID% %command%
goto loop