Skip to content

Commit

Permalink
Update launch-game.cmd to specify Engine.LaunchPath and support resta…
Browse files Browse the repository at this point in the history
…rting
  • Loading branch information
abcdefg30 authored and teinarss committed Nov 6, 2021
1 parent 5d83706 commit 280dd8e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions launch-game.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
title OpenRA
for %%x in (%*) do (
for /F "delims==\ " %%x in ("%*") do (
if "%%~x" EQU "Game.Mod" (goto launch)
)

Expand All @@ -17,10 +17,12 @@ echo.
goto choosemod

:launchmod
bin\OpenRA.exe Engine.EngineDir=".." Game.Mod=%mod% %*
cd %~dp0%
bin\OpenRA.exe Engine.EngineDir=".." Engine.LaunchPath="%~dpf0" Game.Mod=%mod% %*
goto end
:launch
bin\OpenRA.exe Engine.EngineDir=".." %*
cd %~dp0%
bin\OpenRA.exe Engine.EngineDir=".." Engine.LaunchPath="%~dpf0" %*

:end
if %errorlevel% neq 0 goto crashdialog
Expand Down

0 comments on commit 280dd8e

Please sign in to comment.