Initial commit: OpenRA game engine
Fork from OpenRA/OpenRA with one-click launch script (start-ra.cmd) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
60
utility.cmd
Normal file
60
utility.cmd
Normal file
@@ -0,0 +1,60 @@
|
||||
@echo off
|
||||
title OpenRA.Utility.exe
|
||||
set ENGINE_DIR=..
|
||||
|
||||
set argC=0
|
||||
for %%x in (%*) do set /A argC+=1
|
||||
|
||||
if %argC% == 0 goto choosemod
|
||||
|
||||
if %argC% == 1 (
|
||||
set mod=%1
|
||||
goto help
|
||||
)
|
||||
|
||||
if %argC% GEQ 2 (
|
||||
@REM This option is for use by other scripts so we don't want any extra output here - before or after.
|
||||
call bin\OpenRA.Utility.exe %*
|
||||
EXIT /B 0
|
||||
)
|
||||
|
||||
:choosemod
|
||||
echo ----------------------------------------
|
||||
echo.
|
||||
call bin\OpenRA.Utility.exe
|
||||
echo Enter --exit to exit
|
||||
set /P mod="Please enter a modname: OpenRA.Utility.exe "
|
||||
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)
|
||||
if /I "%mod%" EQU "d2k" (goto help)
|
||||
echo.
|
||||
echo Unknown mod: %mod%
|
||||
echo.
|
||||
goto choosemod
|
||||
:help
|
||||
echo.
|
||||
echo ----------------------------------------
|
||||
echo.
|
||||
echo Starting OpenRA.Utility.exe %mod%
|
||||
call bin\OpenRA.Utility.exe %mod%
|
||||
:start
|
||||
echo.
|
||||
echo ----------------------------------------
|
||||
echo.
|
||||
echo Script options:
|
||||
echo --exit to exit
|
||||
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 /b)
|
||||
if /I "%command%" EQU "--help" (goto help)
|
||||
if /I "%command%" EQU "--mod" (goto choosemod)
|
||||
echo.
|
||||
echo ----------------------------------------
|
||||
echo.
|
||||
echo Starting OpenRA.Utility.exe %mod% %command%
|
||||
call bin\OpenRA.Utility.exe %mod% %command%
|
||||
goto start
|
||||
Reference in New Issue
Block a user