forked from OpenRA/OpenRA
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlaunch-game.cmd
36 lines (33 loc) · 898 Bytes
/
launch-game.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
title OpenRA
for %%x in (%*) do (
if "%%~x" EQU "Game.Mod" (goto launch)
)
:choosemod
set /P mod=Select mod (ra, cnc, d2k, ts, ng, sp) or --exit:
if /I "%mod%" EQU "--exit" (exit /b)
if "%mod%" EQU "ra" (goto launchmod)
if "%mod%" EQU "cnc" (goto launchmod)
if "%mod%" EQU "ts" (goto launchmod)
if /I "%mod%" EQU "sp" (goto launchmod)
if /I "%mod%" EQU "ng" (goto launchmod)
if /I "%mod%" EQU "d2k" (goto launchmod)
echo.
echo Unknown mod: %mod%
echo.
goto choosemod
:launchmod
OpenRA.Game.exe Game.Mod=%mod% %*
goto end
:launch
OpenRA.Game.exe %*
:end
if %errorlevel% neq 0 goto crashdialog
exit /b
: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