Add a windows version of the launch-game script.

This commit is contained in:
Paul Chote
2017-03-29 19:51:42 +00:00
parent aa3f21632c
commit ae7a7418eb

24
launch-game.cmd Normal file
View File

@@ -0,0 +1,24 @@
@echo off
title OpenRA
:choosemod
set /P mod=Select mod (ra, cnc, d2k, ts) or --exit:
if /I "%mod%" EQU "--exit" (exit)
if /I "%mod%" EQU "ra" (goto launch)
if /I "%mod%" EQU "cnc" (goto launch)
if /I "%mod%" EQU "ts" (goto launch)
if /I "%mod%" EQU "d2k" (goto launch)
echo.
echo Unknown mod: %mod%
echo.
goto choosemod
:launch
OpenRA.Game.exe Game.Mod=%mod%
if %errorlevel% neq 0 goto crashdialog
exit
:crashdialog
echo ----------------------------------------
echo OpenRA has encountered a fatal error.
echo * Log Files are available in Documents\OpenRA\Logs
echo * FAQ is available at https://github.com/OpenRA/OpenRA/wiki/FAQ
echo ----------------------------------------
pause