Update launch-game.cmd to specify Engine.LaunchPath and support restarting
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
title OpenRA
|
title OpenRA
|
||||||
for %%x in (%*) do (
|
for /F "delims==\ " %%x in ("%*") do (
|
||||||
if "%%~x" EQU "Game.Mod" (goto launch)
|
if "%%~x" EQU "Game.Mod" (goto launch)
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -17,10 +17,12 @@ echo.
|
|||||||
goto choosemod
|
goto choosemod
|
||||||
|
|
||||||
:launchmod
|
:launchmod
|
||||||
bin\OpenRA.exe Engine.EngineDir=".." Game.Mod=%mod% %*
|
cd %~dp0%
|
||||||
|
bin\OpenRA.exe Engine.EngineDir=".." Engine.LaunchPath="%~dpf0" Game.Mod=%mod% %*
|
||||||
goto end
|
goto end
|
||||||
:launch
|
:launch
|
||||||
bin\OpenRA.exe Engine.EngineDir=".." %*
|
cd %~dp0%
|
||||||
|
bin\OpenRA.exe Engine.EngineDir=".." Engine.LaunchPath="%~dpf0" %*
|
||||||
|
|
||||||
:end
|
:end
|
||||||
if %errorlevel% neq 0 goto crashdialog
|
if %errorlevel% neq 0 goto crashdialog
|
||||||
|
|||||||
Reference in New Issue
Block a user