1 Star 0 Fork 0

cxc1357/OpenRA

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
launch-game.cmd 807 Bytes
一键复制 编辑 原始数据 按行查看 历史
abcdefg30 提交于 2018-02-19 23:59 +08:00 . Fix launch-game.cmd accepting wrong mod IDs
@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) 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 "%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cxc1357/OpenRA.git
git@gitee.com:cxc1357/OpenRA.git
cxc1357
OpenRA
OpenRA
master

搜索帮助