Remove INCLUDE_DEFAULT_MODS from batch scripts.
This commit is contained in:
parent
1808c5895f
commit
3f84f06b9a
@ -14,12 +14,8 @@ set Password=""
|
|||||||
title %Name%
|
title %Name%
|
||||||
FOR /F "tokens=1,2 delims==" %%A IN (mod.config) DO (set %%A=%%B)
|
FOR /F "tokens=1,2 delims==" %%A IN (mod.config) DO (set %%A=%%B)
|
||||||
if exist user.config (FOR /F "tokens=1,2 delims==" %%A IN (user.config) DO (set %%A=%%B))
|
if exist user.config (FOR /F "tokens=1,2 delims==" %%A IN (user.config) DO (set %%A=%%B))
|
||||||
|
set MOD_SEARCH_PATHS=%~dp0mods,./mods
|
||||||
|
|
||||||
set MOD_SEARCH_PATHS=%~dp0mods
|
|
||||||
if %INCLUDE_DEFAULT_MODS% neq "True" goto start
|
|
||||||
set MOD_SEARCH_PATHS=%MOD_SEARCH_PATHS%,./mods
|
|
||||||
|
|
||||||
:start
|
|
||||||
if not exist %ENGINE_DIRECTORY%\OpenRA.Game.exe goto noengine
|
if not exist %ENGINE_DIRECTORY%\OpenRA.Game.exe goto noengine
|
||||||
>nul find %ENGINE_VERSION% %ENGINE_DIRECTORY%\VERSION || goto noengine
|
>nul find %ENGINE_VERSION% %ENGINE_DIRECTORY%\VERSION || goto noengine
|
||||||
cd %ENGINE_DIRECTORY%
|
cd %ENGINE_DIRECTORY%
|
||||||
|
|||||||
@ -2,13 +2,9 @@
|
|||||||
title OpenRA
|
title OpenRA
|
||||||
FOR /F "tokens=1,2 delims==" %%A IN (mod.config) DO (set %%A=%%B)
|
FOR /F "tokens=1,2 delims==" %%A IN (mod.config) DO (set %%A=%%B)
|
||||||
if exist user.config (FOR /F "tokens=1,2 delims==" %%A IN (user.config) DO (set %%A=%%B))
|
if exist user.config (FOR /F "tokens=1,2 delims==" %%A IN (user.config) DO (set %%A=%%B))
|
||||||
|
|
||||||
set TEMPLATE_LAUNCHER=%0
|
set TEMPLATE_LAUNCHER=%0
|
||||||
set MOD_SEARCH_PATHS=%~dp0mods
|
set MOD_SEARCH_PATHS=%~dp0mods,./mods
|
||||||
if %INCLUDE_DEFAULT_MODS% neq "True" goto launch
|
|
||||||
set MOD_SEARCH_PATHS=%MOD_SEARCH_PATHS%,./mods
|
|
||||||
|
|
||||||
:launch
|
|
||||||
set TEMPLATE_DIR=%CD%
|
set TEMPLATE_DIR=%CD%
|
||||||
if not exist %ENGINE_DIRECTORY%\OpenRA.Game.exe goto noengine
|
if not exist %ENGINE_DIRECTORY%\OpenRA.Game.exe goto noengine
|
||||||
>nul find %ENGINE_VERSION% %ENGINE_DIRECTORY%\VERSION || goto noengine
|
>nul find %ENGINE_VERSION% %ENGINE_DIRECTORY%\VERSION || goto noengine
|
||||||
|
|||||||
@ -2,14 +2,10 @@
|
|||||||
|
|
||||||
FOR /F "tokens=1,2 delims==" %%A IN (mod.config) DO (set %%A=%%B)
|
FOR /F "tokens=1,2 delims==" %%A IN (mod.config) DO (set %%A=%%B)
|
||||||
if exist user.config (FOR /F "tokens=1,2 delims==" %%A IN (user.config) DO (set %%A=%%B))
|
if exist user.config (FOR /F "tokens=1,2 delims==" %%A IN (user.config) DO (set %%A=%%B))
|
||||||
|
set MOD_SEARCH_PATHS=%~dp0mods,./mods
|
||||||
|
|
||||||
title OpenRA.Utility.exe %MOD_ID%
|
title OpenRA.Utility.exe %MOD_ID%
|
||||||
|
|
||||||
set MOD_SEARCH_PATHS=%~dp0mods
|
|
||||||
if %INCLUDE_DEFAULT_MODS% neq "True" goto start
|
|
||||||
set MOD_SEARCH_PATHS=%MOD_SEARCH_PATHS%,./mods
|
|
||||||
|
|
||||||
:start
|
|
||||||
set TEMPLATE_DIR=%CD%
|
set TEMPLATE_DIR=%CD%
|
||||||
if not exist %ENGINE_DIRECTORY%\OpenRA.Game.exe goto noengine
|
if not exist %ENGINE_DIRECTORY%\OpenRA.Game.exe goto noengine
|
||||||
>nul find %ENGINE_VERSION% %ENGINE_DIRECTORY%\VERSION || goto noengine
|
>nul find %ENGINE_VERSION% %ENGINE_DIRECTORY%\VERSION || goto noengine
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user